Hi,
The custom button added to title of the question disappear when resize the browser window, this happens if the title value length is longer enough to text wrap happen when resize.
button added via following code snippet.
TypeScriptthis.survey.onGetQuestionTitleActions.add((x: any, opt: any) => {
// Exclude feedback questions from registering the title actions.
if(opt.question.name.indexOf("_feedback") > -1) {
return;
}
// Disable questions from editing, except the feedback fields.
const question = this.survey.getQuestionByName(opt.question.name);
question.readOnly = true;
opt.titleActions = [{
title: 'Provide Feedback',
innerCss: 'p-button',
action: () => {
this.provideFeedback(opt.question);
this.surveyInfoDialogService.showDialog.emit(true);
}
}];
});
For better explanation i have attached the recorded video.
Regards,
Roshan G. Bolonna