Hello!
When a read-only field is rendered as "disabled" using "readyOnlyDisplay", I would expect the rendering to honor the "canSelectText" feature.
Here's a small test bed:
Last tested using v12.0p_2020-01-17/Pro Deployment
Thanks!
When a read-only field is rendered as "disabled" using "readyOnlyDisplay", I would expect the rendering to honor the "canSelectText" feature.
Here's a small test bed:
Code:
var form = isc.DynamicForm.create({ showErrorText : true, showErrorIcons : true, numCols : 1, width : 600, fields : [{ name : 'f1', editorType : 'TextItem', title : 'Editable (Selectable)' }, { name : 'f2', editorType : 'TextItem', title : 'Disabled (Selectable)', disabled : true, }, { name : 'f3', editorType : 'TextItem', title : 'Read-Only (Selectable)', canEdit : false }, { name : 'f4', editorType : 'TextItem', title : 'Read-only readOnlyDisplay as Disabled expected to be Selectable', canEdit : false, readOnlyDisplay : 'disabled', }] }); form.editRecord({ f1 : 'content', f2: 'content', f3 : 'content', f4 : 'content', }); form.show();
- The first field is a regular field, which can be edited and selected normally.
- The second field is a disabled field - rendered as disabled (grayed out), but the content is still selectable
- The third field is a regular field, marked as read-only (canEdit) - looks exactly like a normal field, but cannot be modified
- The fourth field is a regular field, marked as read-only, but using "readOnlyDisplay" as "disabled" - we're expecting the field to render exactly like the second one. The rendering has the proper look, but the content is not selectable.
Last tested using v12.0p_2020-01-17/Pro Deployment
Thanks!
Comment