Opened 10 years ago

Closed 10 years ago

#23389 closed Uncategorized (needsinfo)

overrideg to be able the checkbox widget in CheckboxSelectMultiple

Reported by: Brillgen Developers Owned by: nobody
Component: Forms Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm using the CheckboxSelectMultiple form field but it does not have an option to be able to override the checkbox widget.

Ideally the CheckboxSelectMultiple can just take a parameter for the actual widget instead of it being hard forced as:

cb = CheckboxInput(final_attrs, check_test=lambda value: value in str_values)

Change History (1)

comment:1 by Claude Paroz, 10 years ago

Component: UncategorizedForms
Resolution: needsinfo
Status: newclosed

Basically, if you need some special customization of CheckboxSelectMultiple, you should subclass the widget and try to override appropriate methods (maybe providing a custom renderer).

If you have a specific use case which cannot be easily implemented by subclassing, please explain it in more details.

Note: See TracTickets for help on using tickets.
Back to Top