In HTML <input> there is a disabled attribute. But this is not available in <$checkbox> Would also like to be able to disable <$edit-text> as well.
Particular use case is that during my build cycle I am generating results into some TW in a "read-only" mode where the users cannot sign off on things and into some TW in a "test verification" mode where users do have to sign off on things, and I would like the layout to look similar to users and be able to simplify the code which generates the tiddlers/transcludes. Currently, I replace those inputs with literal text, but would prefer to just be able to tag them with disabled so that all the existing TW bindings logic to tiddlers/fields would work.
I am considering just generating <input> elements which would look similar to the TW <$checkbox> elements but are disabled by attribute (and would lose their binding to the underlying tiddlers/fields, so that would have to be a literal as well). Another option I am considering is layering a div over them so they cannot get the focus.
Thanks in advance,
Cade