import { IQuestion , QuestionTextModel , Question } from 'survey-core' ; import { IRect , DocController } from '../doc_controller' ; import { TextFieldBrick } from './pdf_textfield' ; import { SurveyHelper } from '../helper_survey' ; export class TextBoxBrick extends TextFieldBrick { public constructor ( question , controller , rect , protected isQuestion = true , protected isMultiline = false , index = 0 ) { super ( question , controller , rect , isQuestion , ( < QuestionTextModel > question ) . id + ( isQuestion ? '' : '_comment' + index ) , SurveyHelper . getQuestionOrCommentValue ( < Question > question , isQuestion ) , isQuestion ? SurveyHelper . getLocString ( ( < QuestionTextModel > question ) . locPlaceHolder ) : '' , question . isReadOnly , isMultiline , ( < QuestionTextModel > question ) . inputType ) ; } }