Skip to content

Commit

Permalink
feat(date-picker): Add disabled function to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dethell committed Sep 26, 2023
1 parent 5609c70 commit 2ad906a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev/date-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<script type="module">
import '@vaadin/date-picker';
import '@vaadin/tooltip';
const isDateDisabled = (date) => date.getDay() === 0;
const picker = document.querySelector('vaadin-date-picker');
picker.isDateDisabled = isDateDisabled;
</script>
</head>
<body>
Expand Down

0 comments on commit 2ad906a

Please sign in to comment.