LearnNewsExamplesServices
Frontmatter
id1126
titleform.field.Base: readOnly_ config
stateClosed
labels
enhancement
assignees[]
createdAtAug 22, 2020, 1:54 PM
updatedAtJan 5, 2023, 12:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/1126
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 5, 2023, 12:49 PM

form.field.Base: readOnly_ config

Closed v8.1.0 enhancement
tobiu
tobiu commented on Aug 22, 2020, 1:54 PM

similar to disabled_ for component.Base.

add / remove a neo-readonly cls to the vdomRoot.

using afterSetReadOnly()

scss => pointer-events: none should probably be enoug., we need to double-check, if you can still tab into fields in this case.

tobiu added the enhancement label on Aug 22, 2020, 1:54 PM
tobiu
tobiu Jan 5, 2023, 11:06 AM

working on this one now. we should apply the DOM attribute as well (then we don't need to add pointer-events: none). plus some css vars

tobiu referenced in commit e98908e - "form.field.Base: readOnly_ config #1126" on Jan 5, 2023, 11:08 AM
tobiu referenced in commit ff4c5b7 - "#1126 examples.form.field.text.MainContainer: readOnly checkbox" on Jan 5, 2023, 11:10 AM
tobiu referenced in commit a2adcb9 - "#1126 light theme & src: readOnly styling" on Jan 5, 2023, 12:28 PM
tobiu referenced in commit 44f58ed - "#1126 dark theme: readOnly styling" on Jan 5, 2023, 12:32 PM
tobiu closed this issue on Jan 5, 2023, 12:49 PM