From 732c7abd8f21a805796e8e25a3bc89216e75da79 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 21 May 2019 18:08:15 +0300 Subject: [PATCH] documentation update --- src/views/calendar/CalendarDoc.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/calendar/CalendarDoc.vue b/src/views/calendar/CalendarDoc.vue index 252f7ac46..f01c5eb5d 100644 --- a/src/views/calendar/CalendarDoc.vue +++ b/src/views/calendar/CalendarDoc.vue @@ -25,13 +25,13 @@ export default {

Popup and Inline

-

Calendar is displayed in a popup by default and inline property needs to be enabled for inline mode.

+

Calendar is displayed in a popup by default and inline property needs to be enabled for inline mode.

<Calendar v-model="value" :inline="true" />

Selection Mode

-

By default calendar allows selecting one date only whereas multiple dates can be selected by setting selectionMode to multiple. In this +

By default calendar allows selecting one date only whereas multiple dates can be selected by setting selectionMode to multiple. In this case calendar updates the value with an array of dates where optionally number of selectable dates can be restricted with maxDateCount property. Third alternative is the range mode that allows selecting a range based on an array of two values where first value is the start date and second value is the end date.

@@ -41,7 +41,7 @@ export default {

DateFormat

-

Default date format is mm/dd/yy, to customize this use dateFormat property or define it at locale settings. Note that standalone property overrides the value in locale settings.

+

Default date format is mm/dd/yy, to customize this use dateFormat property or define it at locale settings. Note that standalone property overrides the value in locale settings.

<Calendar v-model="value" dateFormat="dd.mm.yy" /> @@ -69,8 +69,8 @@ export default {

Time

-

TimePicker is enabled with showTime property and 24 (default) or 12 hour mode is configured using hourFormat option. If you - need to use the time picker as standalone, use the timeOnly property. +

TimePicker is enabled with showTime property and 24 (default) or 12 hour mode is configured using hourFormat option. If you + need to use the time picker as standalone, use the timeOnly property.

<Calendar v-model="value" :showTime="true" /> @@ -79,25 +79,25 @@ export default {

Date Restriction

-

To disable entering dates manually, set readonlyInput to true and to restrict selectable dates use minDate - and maxDate options.

+

To disable entering dates manually, set manualInput to true and to restrict selectable dates with the minDate + and maxDate options.

<Calendar v-model="value" :minDate="minDateValue" maxDate="maxDateValue" /> -

To disable specific dates or days, restrict selectable dates use disabledDates and/or disabledDays options.

+

To disable specific dates or days, restrict selectable dates use disabledDates and/or disabledDays options.

<Calendar v-model="value" :disabledDates="invalidDates" :disabledDays="[0,6]" />

Button Bar

-

Button bar displays today and clear buttons and enabled using showButtonBar property.

+

Button bar displays today and clear buttons and enabled using showButtonBar property.

<Calendar v-model="value" :showButtonBar="true" />

Multiple Months

-

Displaying multiple months is enabled by setting numberOfMonths property to a value greater than 1.

+

Displaying multiple months is enabled by setting numberOfMonths property to a value greater than 1.

<Calendar v-model="value" :numberOfMonths="3" /> @@ -131,6 +131,7 @@ export default {

Custom Content

Calendar UI accepts custom content using header and footer templates.

+ <Calendar v-model="value"> <template #header>Header Content</template>