<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>glowDateTimeSelector jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75792/glowdatetimeselector-jquery-plugin</link><description>&lt;p&gt;&lt;span&gt;Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.&lt;/span&gt;&lt;/p&gt;</description><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>glowDateTimeSelector jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75792/glowdatetimeselector-jquery-plugin</link><pubDate>Fri, 08 Mar 2024 17:51:44 GMT</pubDate><guid isPermaLink="false">0dcabe1b-c3e5-4289-b407-3da74da2662c</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75792/glowdatetimeselector-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:51:44&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.fn.glowDateTimeSelector&lt;/h3&gt;
&lt;p&gt;This plugin decorates a text input for use as a formatted date and time input with an optional calendar date selector.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initiate a selection of text inputs to be date time selectors.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowDateTimeSelector(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where selector contains &lt;code&gt;&amp;lt;input type=&amp;quot;text&amp;quot; /&amp;gt;&lt;/code&gt; element(s) and &lt;code&gt;options&lt;/code&gt; is an optional object argument&lt;/p&gt;
&lt;h3&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pattern&lt;/code&gt;: string pattern containing all desired segments of a date+time string along with their possible values.
&lt;ul&gt;
&lt;li&gt;default: &lt;em&gt;Empty String&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Examples&lt;/em&gt;:&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;quot;&amp;lt;00-23&amp;gt;:&amp;lt;00-59&amp;gt;&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;quot;&amp;lt;Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec&amp;gt; &amp;lt;1-31&amp;gt;, &amp;lt;1900-3000&amp;gt;&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;quot;&amp;lt;January,February,March,April,May,June,July,August,September,October,November,December&amp;gt; &amp;lt;1-31&amp;gt;, &amp;lt;1900-3000&amp;gt; at &amp;lt;1-12&amp;gt;:&amp;lt;00-59&amp;gt; &amp;lt;am,pm&amp;gt;&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;yearIndex&lt;/code&gt;: integer index of where, in a whitespace-split value string, the year is expected to be parsed.  When &amp;lt; 0, default parsing is used.
&lt;ul&gt;
&lt;li&gt;default: -1&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;monthIndex&lt;/code&gt;: integer index of where, in a whitespace-split value string, the month is expected to be parsed.  When &amp;lt; 0, default parsing is used.
&lt;ul&gt;
&lt;li&gt;default: -1&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dayIndex&lt;/code&gt;: integer index of where, in a whitespace-split value string, the day is expected to be parsed.  When &amp;lt; 0, default parsing is used.
&lt;ul&gt;
&lt;li&gt;default: -1&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;hourIndex&lt;/code&gt;: integer index of where, in a whitespace-split value string, the hour is expected to be parsed.  When &amp;lt; 0, default parsing is used.
&lt;ul&gt;
&lt;li&gt;default: -1&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;minuteIndex&lt;/code&gt;: integer index of where, in a whitespace-split value string, the minute is expected to be parsed.  When &amp;lt; 0, default parsing is used.
&lt;ul&gt;
&lt;li&gt;default: -1&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;amPmIndex&lt;/code&gt;: integer index of where, in a whitespace-split value string, am or pm is expected to be parsed.  When &amp;lt; 0, default parsing is used.
&lt;ul&gt;
&lt;li&gt;default: -1&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;allowBlankvalue&lt;/code&gt;: boolean value of whether or not to allow an empty date
&lt;ul&gt;
&lt;li&gt;default: true&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;monthNames&lt;/code&gt;: Array of string names of months to use in calendar popups.
&lt;ul&gt;
&lt;li&gt;default: Evolution-provided localized strings.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dayNames&lt;/code&gt;: Array of string names of weekday names to use in calendar popups.
&lt;ul&gt;
&lt;li&gt;default: Evolution-provided localized strings.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;previousButtonCssClass&lt;/code&gt;: string classname applied to next buttons within a calendar popup
&lt;ul&gt;
&lt;li&gt;default: &lt;em&gt;empty string&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nextButtonCssClass&lt;/code&gt;: string classname applied to previous buttons within a calendar popup
&lt;ul&gt;
&lt;li&gt;default: &lt;em&gt;empty string&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;parseDateOnLoad&lt;/code&gt;: bool identifying whether the value of the textbox should be parsed as a javascript date (true) or treated as the target pattern (false)
&lt;ul&gt;
&lt;li&gt;default: false&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;clearText&lt;/code&gt;: text to show when a date can be cleared.
&lt;ul&gt;
&lt;li&gt;default: &amp;#39;Clear&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;selectText&lt;/code&gt;: text to show to commit a date selection.
&lt;ul&gt;
&lt;li&gt;default: &amp;#39;OK&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Events&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;glowDateTimeSelectorChange&lt;/code&gt;: triggered when the value is changed&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Methods&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;glowDateTimeSelector&lt;/code&gt;&amp;#39;s initiation is delayed from its use by 9 ms.  To use &lt;code&gt;&amp;#39;val&amp;#39;&lt;/code&gt; or &lt;code&gt;&amp;#39;disabled&amp;#39;&lt;/code&gt; immediately after applying &lt;code&gt;glowDateTimeSelector()&lt;/code&gt; to a selection, it requires delaying the call by 10 ms or more.  This is not required when calling &lt;code&gt;&amp;#39;val&amp;#39;&lt;/code&gt; or &lt;code&gt;&amp;#39;disabled&amp;#39;&lt;/code&gt; in response to user interaction.&lt;/p&gt;
&lt;h4&gt;val&lt;/h4&gt;
&lt;p&gt;Retrieves and/or sets the current value of the date time selector.  The value of the selected text input is also updated by the date time selector.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// get the current datetime as a Date object
var date = $(&amp;#39;selector&amp;#39;).glowDateTimeSelector(&amp;#39;val&amp;#39;);

// set the current datetime to a date object value
$(&amp;#39;selector&amp;#39;).glowDateTimeSelector(&amp;#39;val&amp;#39;, new Date());
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;disabled&lt;/h4&gt;
&lt;p&gt;Retrieves and/or sets whether the date time selector is disabled.  When enabled, focusing on the input will allow changing the value.  When disabled, it will not.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// get the current disabled state
var isDisabled = $(&amp;#39;selector&amp;#39;).glowDateTimeSelector(&amp;#39;disabled&amp;#39;);

// set the disabled state
$(&amp;#39;selector&amp;#39;).glowDateTimeSelector(&amp;#39;disabled&amp;#39;, false);
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>