import * as ko from "knockout" ; import "./restfull.scss" ; import { SurveyPropertyResultfullEditor } from "../propertyEditors/propertyRestfullEditor" ; import { QuestionDropdown } from "survey-knockout" ; const templateHtml = require ( "./restfull.html" ) ; export class PropertyEditorRestfullViewModel { constructor ( public koContentEditor , public getLocString , public question , public componentInfo , public koAfterRender , public afterRender ) { afterRender ( ) ; } } ko . components . register ( "svd-property-editor-restfull" , { viewModel : { createViewModel : ( params , componentInfo ) => { const model = params . model ; return new PropertyEditorRestfullViewModel ( model . koContentEditor , model . getLocString , model . question , componentInfo , model . koAfterRender , ( ) => { typeof params . afterRender === "function" && params . afterRender . call ( model , componentInfo ) ; typeof model . koAfterRender === "function" && model . koAfterRender . call ( model , componentInfo ) ; } ) ; } , } , template : templateHtml , } ) ;