Skip to content

django-bootstrap3-datetimepicker not taking showClear or showTodayButton options #8

@Kingusuneku

Description

@Kingusuneku

Options are not working inside the widget. I have the following in my ModelForm.
class IronForm(forms.ModelForm):
class Meta:
model = Iron
fields = ...
widgets = {'out_of_service_date': DateTimePicker(options={'format': 'YYYY-MM-DD', 'pickTime': False, 'showClear':True, 'showTodayButton': True}), ...}

When I click on the widget, the calendar does not show the 'showClear' button or the 'showTodayButton' button. Any help will be greatly appreciated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions