Skip to content

Commit 0289f7b

Browse files
committed
docs: adding 'Fully support on multiple mode' on migrated page
1 parent cdf1a65 commit 0289f7b

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/routes/guide/migrate/+page.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Migration from V1
44

55
### Importing
66

7-
I has changed from 4 actions (datePicker, monthPicker, dateRangePicker and monthRangePicker) into only 1 action that you can name it by yourself.
7+
Svelte-flatpickr-plus has changed from 4 actions (datePicker, monthPicker, dateRangePicker and monthRangePicker) into only 1 action that you can name it by yourself.
88

99
```svelte title=".svelte"
1010
<script>
@@ -78,6 +78,29 @@ With a month range picker you need to adding options object with `isMonthPicker:
7878
<input use:svlatepickr={options} /> // [svp! ++]
7979
```
8080

81+
### Fully support on `multiple` mode
82+
83+
For now you can using multiple mode on both date picker or month picker
84+
85+
```svelte title=".svelte"
86+
<script>
87+
import svlatepickr from 'svelte-flatpickr-plus';
88+
// For date picker
89+
// [svp! ++]const optionsDatePicker ={
90+
// [svp! ++] mode: 'multiple'
91+
// [svp! ++]};
92+
93+
//For month picker
94+
// [svp! ++]const optionsMonthPicker ={
95+
// [svp! ++] isMonthPicker: true,
96+
// [svp! ++] mode: 'multiple'
97+
// [svp! ++]};
98+
</script>
99+
100+
<input use:svlatepickr={optionsDatePicker} /> // [svp! ++]
101+
<input use:svlatepickr={optionsMonthPicker} /> // [svp! ++]
102+
```
103+
81104
### Theme Changer
82105

83106
Before user should import it from `flatpickr_plus/dist/plugins/themeChanger` for now has been renamed into `themeChanger` and can be imported from

0 commit comments

Comments
 (0)