<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>glowPatternedTextBox jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67167/glowpatternedtextbox-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>glowPatternedTextBox jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67167/glowpatternedtextbox-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:23 GMT</pubDate><guid isPermaLink="false">972c26d9-2bca-4d26-a569-24260c5f824b</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67167/glowpatternedtextbox-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:23&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_glowPatternedTextBox" name="jQuery_fn_glowPatternedTextBox"&gt;&lt;/a&gt;jQuery.fn.glowPatternedTextBox&lt;/h3&gt;
&lt;p&gt;Decorates a text input with patterned input functionality&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where &amp;#39;SELECTOR&amp;#39; contains the text input element(s) which will be patterned and the options object can contain:&lt;/p&gt;
&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pattern&lt;/code&gt;: The pattern to use for the text box.  Two types of pattern definitions are supported (any text between a pattern definition is considered static and uneditable):
&lt;ul&gt;
&lt;li&gt;Numeric range pattern: &amp;lt;X-Y&amp;gt; where X and Y are numbers. Any value between X and Y (inclusive) is considered valid. If either X or Y includes decimal places, the greatest number of decimal places will be used.&lt;/li&gt;
&lt;li&gt;Selection range pattern: &amp;lt;Value1,Value2,Value3,Value4,Value5&amp;gt; where any defined textual value is considered valid.&lt;/li&gt;
&lt;li&gt;
Examples:
&lt;ul&gt;
&lt;li&gt;Date: &lt;code&gt;&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;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Time: &lt;code&gt;&amp;lt;1-12&amp;gt;:&amp;lt;00-59&amp;gt; &amp;lt;AM,PM&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Unit: &lt;code&gt;&amp;lt;0-1600&amp;gt; &amp;lt;px,pt,%,pc,in,mm,cm,em,ex&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Decimal Unit: &lt;code&gt;&amp;lt;0.00-100.00&amp;gt; &amp;lt;px,pt,%,pc,in,mm,cm,em,ex&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Short-hand Date: &lt;code&gt;&amp;lt;01-12&amp;gt;/&amp;lt;01-31&amp;gt;/&amp;lt;1900-3000&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;default: &lt;code&gt;empty string&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;allowBlanks&lt;/code&gt;: whether to allow blank entries
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;blankCharacter&lt;/code&gt;: pattern character which represents blanks
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;-&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;onValidation&lt;/code&gt;: callback function which can provide custom logic for handling the input of a patterned text box.  called whenever a segment of the pattern is iterated up or down.  callback returns an array of selected indexes corresponding to each region in the patterned text box.  callback is passed:
&lt;ul&gt;
&lt;li&gt;jQ - the patternedTextBox instance jQuery selection&lt;/li&gt;
&lt;li&gt;regions - string array of current regions&lt;/li&gt;
&lt;li&gt;type - &amp;#39;next&amp;#39; or &amp;#39;previous&amp;#39; string - the direction of selection&lt;/li&gt;
&lt;li&gt;modifiedIndex - current index of regions being iterated&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Events" name="Events"&gt;&lt;/a&gt;Events&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;glowPatternedTextBoxChange&lt;/code&gt; - triggered when the text box changes value&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="getPatternValues" name="getPatternValues"&gt;&lt;/a&gt;getPatternValues&lt;/h4&gt;
&lt;p&gt;Returns a string array of the selected pattern values&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var patternValues = $(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;getPatternValues&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="getPatternValueOptionIndex" name="getPatternValueOptionIndex"&gt;&lt;/a&gt;getPatternValueOptionIndex&lt;/h4&gt;
&lt;p&gt;Returns the index of a given pattern value within a given pattern identified by its pattern index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var patternIndex = 2;
var value = &amp;#39;vale&amp;#39;;
var valueIndex = $(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;getPatternValueOptionIndex&amp;#39;, patternIndex, value)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="getPatternValueOption" name="getPatternValueOption"&gt;&lt;/a&gt;getPatternValueOption&lt;/h4&gt;
&lt;p&gt;Returns the value of a given pattern index within a given pattern identified by its pattern index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var patternIndex = 2;
var valueIndex = 3;
var valueOption = $(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;getPatternValueOptionIndex&amp;#39;, patternIndex, valueIndex);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="setPatternValues" name="setPatternValues"&gt;&lt;/a&gt;setPatternValues&lt;/h4&gt;
&lt;p&gt;Applies selected pattern indices to each pattern&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var patternValues = [4,3,9];
$(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;setPatternValues&amp;#39;, patternValues);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="val" name="val"&gt;&lt;/a&gt;val&lt;/h4&gt;
&lt;p&gt;Gets and/or sets the current value of the patterned text box&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var value = $(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;val&amp;#39;);
$(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;val&amp;#39;, newValue);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="disabled" name="disabled"&gt;&lt;/a&gt;disabled&lt;/h4&gt;
&lt;p&gt;Gets and/or sets whether the current patterned text box is disabled&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var disabled = $(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;disabled&amp;#39;);
$(&amp;#39;SELECTOR&amp;#39;).glowPatternedTextBox(&amp;#39;disabled&amp;#39;, true);
&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>