Class: ClassConfig

ClassDatepicker. ClassConfig

new ClassConfig()

Overwrite by option passed to plugin //persiandate.github.io/PersianWebToolkit/doc/datepicker/0.3.5/
Source:

Members

<static> altField :boolean

altField
Type:
  • boolean
Default Value:
  • false
Source:

<static> altFormat :string

altField
Type:
  • string
Default Value:
  • unix
Source:

<static> autoClose :boolean

If true picker close When Select day
Type:
  • boolean
Properties:
Name Type Description
autoClose
Default Value:
  • false
Source:

<static> dayPicker :object

dayPicker config object
Type:
  • object
Properties:
Name Type Description
dayPicker
Source:
See:

<static> format :boolean

format
Type:
  • boolean
Default Value:
  • false
Source:

<static> inputDelay :number

inputDelay
Type:
  • number
Default Value:
  • 800
Source:

<static> justSelectOnDate :boolean

if true date select just by click on day in month grid
Type:
  • boolean
Properties:
Name Type Description
justSelectOnDate
Source:

<static> maxDate :boolean

set max date on datepicker
Type:
  • boolean
Properties:
Name Type Description
maxDate
Source:

<static> minDate :boolean

set min date on datepicker
Type:
  • boolean
Properties:
Name Type Description
minDate
Source:

<static> monthPicker :object

monthPicker config object
Type:
  • object
Properties:
Name Type Description
monthPicker
Source:
See:

<static> navigator :object

navigator config object
Type:
  • object
Properties:
Name Type Description
navigator
Default Value:
  • true
Source:
See:

<static> observer :boolean

observer
Type:
  • boolean
Default Value:
  • false
Source:

<static> onlyTimePicker :boolean

if true all pickers hide and just shpw timepicker
Type:
  • boolean
Properties:
Name Type Description
justSelectOnDate
Source:

<static> persianDigit :boolean

if true all digit convert to persian digit.
Type:
  • boolean
Default Value:
  • true
Source:

<static> position :string|Array

[x,y] , define a position of datepicker relative to input element.
Type:
  • string | Array
Properties:
Name Type Description
position
Default Value:
  • auto
Source:

<static> timePicker :object

timepicker config object
Type:
  • object
Properties:
Name Type Description
timePicker
Source:
See:

<static> toolbox :object

toolbox config object
Type:
  • object
Properties:
Name Type Description
toolbox
Deprecated:
  • 0.2.3
    Default Value:
    • true
    Source:
    See:

    <static> viewMode :string

    Acceptable value : day,month,year
    Type:
    • string
    Properties:
    Name Type Description
    viewMode
    Default Value:
    • day
    Source:

    <static> yearPicker :object

    yearPicker config object
    Type:
    • object
    Properties:
    Name Type Description
    yearPicker
    Source:
    See:

    Methods

    <static> altFieldFormatter(unixDate) → {*}

    format value of 'altField' input
    Parameters:
    Name Type Description
    unixDate
    Source:
    Returns:
    Type
    *

    <static> checkDate()

    check date avalibility
    Properties:
    Name Type Description
    unix
    Source:

    <static> checkMonth()

    check month avalibility
    Properties:
    Name Type Description
    month index
    Source:

    <static> checkYear()

    check year avalibility
    Properties:
    Name Type Description
    year
    Source:

    <static> destroy(self)

    Removes the datepicker functionality completely.
    Parameters:
    Name Type Description
    self
    Source:

    <static> formatter(unixDate) → {*}

    format value of input
    Parameters:
    Name Type Description
    unixDate
    Source:
    Returns:
    Type
    *

    <static> hide() → {ClassConfig}

    Hide the date picker
    Source:
    Returns:
    Type
    ClassConfig

    <static> show() → {ClassConfig}

    Open the date picker.
    Source:
    Returns:
    Type
    ClassConfig

    Events

    onHide

    A function that takes current datepicker instance. It is called just before the datepicker Hide.
    Parameters:
    Name Type Description
    self
    Source:

    onSelect

    A function that takes current datepicker unixDate. It is called When Day Select.
    Parameters:
    Name Type Description
    unixDate
    Source:

    onShow

    A function that takes current datepicker instance. It is called just before the datepicker is displayed.
    Parameters:
    Name Type Description
    self
    Source: