Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
edisdev committed Aug 9, 2021
1 parent 92fecd8 commit 51fc14c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@ npm install vue-datepicker-ui --save
<div class="Datepickers">
<div class="Datepicker">
<Datepicker
:value="new Date()"/>
:model-value="new Date()"/>
</div>

<div class="Datepicker colorfull">
<Datepicker
circle
:value="new Date()"/>
:model-value="new Date()"/>
</div>

<div class="Datepicker dark">
<Datepicker
circle
:value="new Date()"/>
:model-value="new Date()"/>
</div>

<div class="Datepicker dark">
<Datepicker
circle
range
position="center"
:value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"/>
:model-value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"/>
</div>

</div>
Expand Down
32 changes: 16 additions & 16 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title: 'Examples'
<Datepicker v-model="new Date()"/>
</template>
```
<Datepicker :value="new Date()"/>
<Datepicker :model-value="new Date()"/>

## range
**Range - Default**
Expand All @@ -37,7 +37,7 @@ title: 'Examples'
</script>
```
<Datepicker
:value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"
:model-value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"
range/>

## lang
Expand All @@ -48,7 +48,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" lang="en"/>
<Datepicker :model-value="new Date()" lang="en"/>

## firstDayOfWeek

Expand All @@ -59,7 +59,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" first-day-of-week="sunday"/>
<Datepicker :model-value="new Date()" first-day-of-week="sunday"/>

## inputClass
**Added Custom Input Class**
Expand All @@ -69,7 +69,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" input-class="customInputClass"/>
<Datepicker :model-value="new Date()" input-class="customInputClass"/>

## position
**Change Picker Position** (Default: 'left')
Expand All @@ -80,7 +80,7 @@ title: 'Examples'
<Datepicker v-model="new Date()" position="left"/>
</template>
```
<Datepicker :value="new Date()" position="left"/>
<Datepicker :model-value="new Date()" position="left"/>

**Right**
```vue
Expand All @@ -89,7 +89,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" position="right"/>
<Datepicker :model-value="new Date()" position="right"/>

**Center**
```vue
Expand All @@ -98,7 +98,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" position="center"/>
<Datepicker :model-value="new Date()" position="center"/>

**Top**
```vue
Expand All @@ -107,7 +107,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" position="top"/>
<Datepicker :model-value="new Date()" position="top"/>

## disabledStartDate
**Make disabled single date:**
Expand Down Expand Up @@ -135,7 +135,7 @@ title: 'Examples'
```

<Datepicker
:value="new Date(new Date().getTime() - 5 * 24 * 60 * 60 * 1000)"
:model-value="new Date(new Date().getTime() - 5 * 24 * 60 * 60 * 1000)"
:disabled-start-date="{
to: new Date('08.02.2021'),
from: new Date('10.02.2021')
Expand Down Expand Up @@ -175,7 +175,7 @@ title: 'Examples'

<Datepicker
range
:value="[new Date(),
:model-value="[new Date(),
new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"
:disabled-end-date="{
to: new Date('08.02.2021'),
Expand All @@ -192,7 +192,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" text-format="long"/>
<Datepicker :model-value="new Date()" text-format="long"/>


## dateFormat
Expand All @@ -209,7 +209,7 @@ title: 'Examples'
</template>
```

<Datepicker :value="new Date()" :date-format="{ day: '2-digit', month: '2-digit', year: 'numeric' }"/>
<Datepicker :model-value="new Date()" :date-format="{ day: '2-digit', month: '2-digit', year: 'numeric' }"/>

## disabled
**Disable Calendar**
Expand Down Expand Up @@ -245,7 +245,7 @@ title: 'Examples'

<Datepicker
circle
:value="new Date()"/>
:model-value="new Date()"/>

## showClearButton
**selected date clear**
Expand All @@ -259,7 +259,7 @@ title: 'Examples'

<Datepicker
show-clear-button
:value="new Date()"/>
:model-value="new Date()"/>

## showPickerInital
**picker show on mount**
Expand All @@ -273,4 +273,4 @@ title: 'Examples'

<Datepicker
show-picker-inital
:value="new Date()"/>
:model-value="new Date()"/>

0 comments on commit 51fc14c

Please sign in to comment.