2019-07-13 11:35:57 +02:00
|
|
|
<script>
|
2020-09-09 13:06:04 +02:00
|
|
|
import Flatpickr from "svelte-flatpickr"
|
2020-09-09 17:27:46 +02:00
|
|
|
import { Label, DatePicker } from "@budibase/bbui"
|
2020-09-09 14:44:36 +02:00
|
|
|
|
|
|
|
export let label
|
|
|
|
export let value
|
2020-09-09 18:02:16 +02:00
|
|
|
|
|
|
|
function onChange(event) {
|
|
|
|
const [selectedDates] = event.detail
|
|
|
|
value = selectedDates[0]
|
|
|
|
}
|
2019-07-13 11:35:57 +02:00
|
|
|
</script>
|
|
|
|
|
2020-09-25 12:30:26 +02:00
|
|
|
<DatePicker placeholder={label} on:change={onChange} {value} />
|