23.0.12 • Published 1 year ago

@logo-elements/hijri-datepicker v23.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@logo-elements/hijri-datepicker

A web component that allows to enter a date by typing or by selecting from Islamic Hijri calendar which uses the Umm Al-Qura calendar system.

npm version

<logo-elements-hijri-datepicker></logo-elements-hijri-datepicker>

Installation

Install the component:

npm i @logo-elements/hijri-datepicker --save

Once installed, import the component in your application:

import '@logo-elements/hijri-datepicker';

Attributes:

namerequiredtypedescription
componentIdnostringThe ID for input area in the component. If you want to access the input you can use this feature.
placementnoPopper PositionsThe placement of the the datepicker 'bottom', 'top', 'right', 'left' and 'auto' default: bottom, you can use any placement in popper.js
date-formatnoMoment TypesThe date format, it is string, default: iYYYY/iMM/iDD, any format in moment-hijri will work
selected-datenostringThe selected date it is string with the same format of date-format prop
lang-codeno'en' - 'ar'The language code for the datepicker. It can accept 'en' and 'ar' values. default: 'ar'
labelnostringThe label value of the input.
helper-textnostringHelper text of the input.
requirednobooleanIf area is required you can set this feature true.
disablednobooleanThe language code for the datepicker. It can accept 'en' and 'ar' values. default: 'ar'

Event onchange

in any change on the date, will be firing a change event. so you can listen and respond to the change.

For more detailed information, please visit:

Logo Elements Documentation ↗