Skip to content

Commit

Permalink
fix: display weekdays short description on InlineDatePicker
Browse files Browse the repository at this point in the history
Close #38
  • Loading branch information
flang authored and javier-godoy committed Mar 21, 2023
1 parent c060d99 commit 03e0706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private static <R,S> SerializableFunction<R,S> map(SerializableFunction<R,S> f)
public InlineDatePicker() {
super(VALUE_PROPERTY, null, String.class, map(LocalDate::parse), map(LocalDate::toString));
setValue(LocalDate.now());
setWeekNumbersVisible(true);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class InlineDatePicker extends LitElement {
render() {
return html`
<fc-year-month-field .date="${this.displayDate}" @value-changed="${this.__onDisplayMonthChange}"></fc-year-month-field>
<fc-month-calendar .month="${this.displayDate}" @date-selected="${this.__onDateSelected}" .showWeekNumbers="${this.showWeekNumbers}"></fc-year-month-field>
<fc-month-calendar .month="${this.displayDate}" @date-selected="${this.__onDateSelected}"
.showWeekNumbers="${this.showWeekNumbers ? this.showWeekNumbers : undefined}"></fc-year-month-field>
`;
}

Expand Down

0 comments on commit 03e0706

Please sign in to comment.