![]() Returns a boolean or array with the options.extraFormats option configuration extraFormats(formats) Used to customize the header of the day view.Īllows for several input formats to be valid. Returns a string variable with the currently set options.dayViewHeaderFormat option. (if 'a' or 'h' exists in the passed string then a 12 hour mode is set)Ĭhanges the heading of the datepicker when in "days" view. Note: this is also used to determine if the TimePicker sub component will display the hours in 12 or 24 format. The parameter can also be a boolean:false in which case the format is set to the locale's L LT. This is used for displaying and also for parsing input strings either from the input element the component is attached to or the date() function. Takes a moment.js format string and sets the components options.format. Returns the component's options.format string format(format) MM/dd/YYYY will not display the time picker. Format also dictates what components are shown, e.g. dp.change - In case newDate is different from current moment.TypeError - in case the newDate cannot be parsed.Parsing of the newDate parameter is made using moment library with the options.format and eStrict components configuration. Passing a null value unsets the components model current moment. Takes string, Date, moment, null parameter and sets the components model current moment to it. Returns the component's model current date, a moment object or null if not set. Use this to update multiple options on the component. Takes an object variable with option key:value properties and configures the component. Use options(options) to set the components options massively or the other methods for setting config options individually. ![]() Note that the changing the values of the returned object does not change the components actual configuration. Returns the components current options object. $('#datetimepicker').data("DateTimePicker").OPTION() options() All options are accessed via the data attribute e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |