Code:
.formCell [readonly] { ... }
Code:
getElementHTML: function () { const html = this.Super('getElementHTML', arguments); return this.canEdit ? html : html.replace('<DIV', '<DIV readonly="TRUE"'); }
.formCell [readonly] { ... }
getElementHTML: function () { const html = this.Super('getElementHTML', arguments); return this.canEdit ? html : html.replace('<DIV', '<DIV readonly="TRUE"'); }
.formCell [readonly] { background-color: #F0F0F0; } /* give read only fields a different look */
formItemInstance.setCanEdit(false); formItemInstance.setTextBoxStyle("mystyle");
formItemInstance.setCanEdit(true); formItemInstance.setTextBoxStyle(itemDefaultStyleString);
DynamicForm df = new DynamicForm() { { setReadOnlyDisplay(ReadOnlyDisplayAppearance.DISABLED); } }; DynamicForm.setDefaultProperties(df); TextAreaItem tai = new TextAreaItem() { { setReadOnlyDisplay(ReadOnlyDisplayAppearance.READONLY); } }; TextAreaItem.setDefaultProperties(tai);
textarea[readonly="TRUE"] { color: rgb(172, 168, 153); }
Leave a comment: