Skip to content

Commit

Permalink
fix(datepicker): add missing options
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed May 5, 2020
1 parent 1e1c8bc commit 9e60b59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elements/datepicker/datepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
</div>
<md-datepicker view-model.ref="mdDatepicker" container="body" year-range.bind="yearRange" type="date" hidden disabled
readonly tabindex="-1" value.bind="value" change.delegate="suppressMaterializeChange($event)"
min-date.bind="minDate" max-date.bind="maxDate" disable-day-fn.bind="disableDayFn"></md-datepicker>
min-date.bind="minDate" max-date.bind="maxDate" disable-day-fn.bind="disableDayFn"
disable-weekends.bind="disableWeekends" first-day.bind="firstDay"></md-datepicker>
</template>
6 changes: 6 additions & 0 deletions src/elements/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export class Datepicker {
@au.bindable({ defaultBindingMode: au.bindingMode.oneTime })
disableDayFn: (day: Date) => boolean;

@au.ato.bindable.booleanMd({ defaultBindingMode: au.bindingMode.oneTime })
disableWeekends: boolean;

@au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime })
firstDay: number;

labelElement: HTMLLabelElement;

@au.bindable({ defaultBindingMode: au.bindingMode.twoWay })
Expand Down

0 comments on commit 9e60b59

Please sign in to comment.