0.0.5 • Published 12 months ago

taqwim-vue v0.0.5

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

taqwim-vue

Installation

npm install taqwim-vue

Usage

<script setup>
import { DatePicker } from 'taqwim-vue'

const date = ref({ hy: 1446, hm: 1, hd: 1 })
</script>

<template>
  <DatePicker v-model="date" />
</template>

Props

NameDescriptionTypeDefault
viewModeThe initial view mode of the date picker.ViewMode ('month', 'months', 'years')'month'
localeLocale to use for formatting and parsing.string'en'
modelValueThe current date value in Hijri format.ValidHijriDatecurrent Hijri date
formattedValueThe formatted date value as a string.stringcurrent Hijri date formatted
formatThe format string used for the date.string'iYYYY/iMM/iD'
titleTitle of the date picker, displayed at the top.string''
weekDayFormatFormat for displaying weekdays.WeekDayFormat ('weekDaysMedium', 'weekDaysLong', 'weekDaysShort')'weekDaysMedium'
monthFormatFormat for displaying months.MonthFormat ('monthsMedium', 'monthsLong', 'monthsShort')'monthsMedium'
showAdjacentDaysWhether to show dates from adjacent months.booleantrue

Events

NameDescriptionPayload

Slots

NameDescriptionSlot Props
titleCustom content for the title area.
headerCustom content for the header area, typically showing the selected date.
controlsCustom content for the date picker controls, including navigation buttons.
monthCustom content for the month navigation control.{ date: HijriDateObject, locale: string, changeMode: Function }
modeCustom content for the mode toggle button (month/year view).{ date: HijriDateObject, locale: string, changeMode: Function, viewMode: ViewMode }
prevCustom content for the previous month navigation button.{ prevMonth: Function }
nextCustom content for the next month navigation button.{ nextMonth: Function }
weekdaysCustom content for displaying weekdays.{ weekdays: string[] }
daysCustom content for displaying days in the month view.{ days: { date: HijriDateObject, dayInMonth: number, isAdjacent: boolean, isToday: boolean, isSelected: boolean }[] }
monthsCustom content for displaying months in the year view.{ months: string[] }
yearsCustom content for displaying years in the decade view.{ years: number[] }
0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.1

12 months ago

0.0.1-beta.1

12 months ago

0.0.1-beta.0

12 months ago