Opened 14 years ago
Closed 14 years ago
#14719 closed (duplicate)
Different attributes for DateInput and TimeInput in SplitDateTimeWidget
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | widget date time | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Current implementation of SplitDateTimeWidget
accepts an attrs
dictionary and passes it to both DateInput
and TimeInput
widgets. It would be nice if widgets may have different attributes while attrs
still applies to both.
For instance:
widget = SplitDateTimeWidget(attrs={'class': 'input-field'}, date_attrs={'dojoType': 'dijit.form.DateTextBox'}, time_attrs={'dojoType': 'dijit.form.DateTextBox'})
Note:
See TracTickets
for help on using tickets.
Duplicate of #14718