ui.datepicker
Hierarchy
coreui.datepickerRequires
jqueryFiles
Picker
Config options
Selects a specific date as a basic
Defaults to: "now"
Defines a DOM event to be used in a UI
Defaults to: {}
Format of the date handed over when selecting a specific date
Defaults to: "yyyy-MM-dd"
Selects a specific maximum date
Defaults to: "null"
Selects a specific minimum date
Defaults to: "null"
Defines a template markup to be used in a UI
Defaults to: {}
Determines the type of a calendar
Defaults to: "daily"
Methods
Selects a date corresponding to the time added to the currently selected date
Parameters
- time : "Integer"/"Date"
Timestamp or Date
Check the parameter type of a UI method and generates an alarm when a wrong value is entered
Parameters
- name : String
Method name
- params : Array
Parameters
Sets a callback function that is called after a UI method is run
Parameters
- name : String
Method name
- callback : Function
Returns
- Mixed
Sets a callback function that is called before a UI method is run
Parameters
- name : String
Method name
- callback : Function
Returns
- Mixed
Sets a callback function and the delay time before/after a UI method is run
Parameters
- name : String
Method name
- callback : Function
Removes all events set in a UI obejct and the DOM element
Generates a custom event. The first parameter is the type of a custom event. A function defined as an option or on method is called
Parameters
- type : String
Event type
- args : Function
Event Arguments
Returns
- Mixed
Gets the value of the date currently selected
Returns
- Date
Date object
Gets a date string that fits the format entered
Returns
- String
format Formatted date string
Gets the timestamp value of the date currently selected
Returns
- Integer
Timestamp
Outputs a calendar that fits the next year/month
Removes a custom event of an applicable type or callback handler
Parameters
- type : String
Event type
A callback function defined as an on method is run when an emit method is called
Parameters
- type : String
Event type
- callback : Function
Outputs a calendar that fits the year/month entered
Parameters
- year : Integer
- month : Integer
Outputs a calendar that fits the previous year/month
Selects today if there is no value, or selects a date applicable to a timestamp or year/month/date
Parameters
- : "year"/"month"/"date"/"timestamp"/"Date"
Dynamically defines the options of a UI
Parameters
- key : String
- value : Mixed
Dynamically defines the template method of a UI
Parameters
- name : String
Template name
- html : String
Template markup
Events
Event that occurs when clicking on the next button
Parameters
- e : EventObject
The event object
Event that occurs when clicking on the previous button
Parameters
- e : EventObject
The event object
Event that occurs when selecting a specific date
Parameters
- value : String
Formatted date string
- e : EventObject
The event object