[TW5] A way to disable a checkbox ?

44 views
Skip to first unread message

FrD

unread,
Feb 15, 2017, 6:45:18 AM2/15/17
to TiddlyWiki
Hi all,

I'm playing with checkboxes for lists (as in travel lists, shopping lists, ...). I'm using the checkbox widget.

And I'd like to be able to disable some checkboxes in a list when they are not relevant in a given context.

A way to disable a checkbox created by the checkbox widget does not seem to be provided.

Any hint on how to modify the widget ?

Thanks in advance.

FrD

Jed Carty

unread,
Feb 15, 2017, 7:50:21 AM2/15/17
to TiddlyWiki
I think that instead of modifying the widget you should use a reveal widget to show a non-functional (or greyed out) html checkbox when you want it to be disabled.

FrD

unread,
Feb 15, 2017, 8:24:11 AM2/15/17
to TiddlyWiki
Hi Jed,

Thanks ! It seems indeed to be a very simple way to go.
I' ll use something like :

<label">
<input type="checkbox" disabled> Test</label>

inside a reveal widget.

FrD
Reply all
Reply to author
Forward
0 new messages