Alien-Web-ExtJS-V3

 view release on metacpan or  search on metacpan

share/docs/source/DateField.html  view on Meta::CPAN

      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='Ext-form-DateField-method-constructor'><span id='Ext-form-DateField'>/**
</span></span> * @class Ext.form.DateField
 * @extends Ext.form.TriggerField
 * Provides a date input field with a {@link Ext.DatePicker} dropdown and automatic date validation.
 * @constructor
 * Create a new DateField
 * @param {Object} config
 * @xtype datefield
 */
Ext.form.DateField = Ext.extend(Ext.form.TriggerField,  {
<span id='Ext-form-DateField-cfg-format'>    /**
</span>     * @cfg {String} format
     * The default date format string which can be overriden for localization support.  The format must be
     * valid according to {@link Date#parseDate} (defaults to &lt;tt&gt;'m/d/Y'&lt;/tt&gt;).
     */
    format : &quot;m/d/Y&quot;,
<span id='Ext-form-DateField-cfg-altFormats'>    /**
</span>     * @cfg {String} altFormats
     * Multiple date formats separated by &quot;&lt;tt&gt;|&lt;/tt&gt;&quot; to try when parsing a user input value and it
     * does not match the defined format (defaults to
     * &lt;tt&gt;'m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j'&lt;/tt&gt;).
     */
    altFormats : &quot;m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j&quot;,
<span id='Ext-form-DateField-cfg-disabledDaysText'>    /**
</span>     * @cfg {String} disabledDaysText
     * The tooltip to display when the date falls on a disabled day (defaults to &lt;tt&gt;'Disabled'&lt;/tt&gt;)
     */
    disabledDaysText : &quot;Disabled&quot;,
<span id='Ext-form-DateField-cfg-disabledDatesText'>    /**
</span>     * @cfg {String} disabledDatesText
     * The tooltip text to display when the date falls on a disabled date (defaults to &lt;tt&gt;'Disabled'&lt;/tt&gt;)
     */
    disabledDatesText : &quot;Disabled&quot;,
<span id='Ext-form-DateField-cfg-minText'>    /**
</span>     * @cfg {String} minText
     * The error text to display when the date in the cell is before &lt;tt&gt;{@link #minValue}&lt;/tt&gt; (defaults to
     * &lt;tt&gt;'The date in this field must be after {minValue}'&lt;/tt&gt;).
     */
    minText : &quot;The date in this field must be equal to or after {0}&quot;,
<span id='Ext-form-DateField-cfg-maxText'>    /**
</span>     * @cfg {String} maxText
     * The error text to display when the date in the cell is after &lt;tt&gt;{@link #maxValue}&lt;/tt&gt; (defaults to
     * &lt;tt&gt;'The date in this field must be before {maxValue}'&lt;/tt&gt;).
     */
    maxText : &quot;The date in this field must be equal to or before {0}&quot;,
<span id='Ext-form-DateField-cfg-invalidText'>    /**
</span>     * @cfg {String} invalidText
     * The error text to display when the date in the field is invalid (defaults to
     * &lt;tt&gt;'{value} is not a valid date - it must be in the format {format}'&lt;/tt&gt;).
     */
    invalidText : &quot;{0} is not a valid date - it must be in the format {1}&quot;,
<span id='Ext-form-DateField-cfg-triggerClass'>    /**
</span>     * @cfg {String} triggerClass
     * An additional CSS class used to style the trigger button.  The trigger will always get the
     * class &lt;tt&gt;'x-form-trigger'&lt;/tt&gt; and &lt;tt&gt;triggerClass&lt;/tt&gt; will be &lt;b&gt;appended&lt;/b&gt; if specified
     * (defaults to &lt;tt&gt;'x-form-date-trigger'&lt;/tt&gt; which displays a calendar icon).
     */
    triggerClass : 'x-form-date-trigger',
<span id='Ext-form-DateField-cfg-showToday'>    /**
</span>     * @cfg {Boolean} showToday
     * &lt;tt&gt;false&lt;/tt&gt; to hide the footer area of the DatePicker containing the Today button and disable
     * the keyboard handler for spacebar that selects the current date (defaults to &lt;tt&gt;true&lt;/tt&gt;).
     */
    showToday : true,
    
<span id='Ext-form-DateField-cfg-startDay'>    /**
</span>     * @cfg {Number} startDay
     * Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)
     */
    startDay : 0,
    
<span id='Ext-form-DateField-cfg-minValue'>    /**
</span>     * @cfg {Date/String} minValue
     * The minimum allowed date. Can be either a Javascript date object or a string date in a
     * valid format (defaults to null).
     */
<span id='Ext-form-DateField-cfg-maxValue'>    /**
</span>     * @cfg {Date/String} maxValue
     * The maximum allowed date. Can be either a Javascript date object or a string date in a
     * valid format (defaults to null).
     */
<span id='Ext-form-DateField-cfg-disabledDays'>    /**
</span>     * @cfg {Array} disabledDays
     * An array of days to disable, 0 based (defaults to null). Some examples:&lt;pre&gt;&lt;code&gt;
// disable Sunday and Saturday:
disabledDays:  [0, 6]
// disable weekdays:
disabledDays: [1,2,3,4,5]
     * &lt;/code&gt;&lt;/pre&gt;
     */
<span id='Ext-form-DateField-cfg-disabledDates'>    /**
</span>     * @cfg {Array} disabledDates
     * An array of &quot;dates&quot; to disable, as strings. These strings will be used to build a dynamic regular
     * expression so they are very powerful. Some examples:&lt;pre&gt;&lt;code&gt;
// disable these exact dates:
disabledDates: [&quot;03/08/2003&quot;, &quot;09/16/2003&quot;]
// disable these days for every year:
disabledDates: [&quot;03/08&quot;, &quot;09/16&quot;]
// only match the beginning (useful if you are using short years):
disabledDates: [&quot;^03/08&quot;]
// disable every day in March 2006:
disabledDates: [&quot;03/../2006&quot;]
// disable every day in every March:
disabledDates: [&quot;^03&quot;]
     * &lt;/code&gt;&lt;/pre&gt;
     * Note that the format of the dates included in the array should exactly match the {@link #format} config.
     * In order to support regular expressions, if you are using a {@link #format date format} that has &quot;.&quot; in
     * it, you will have to escape the dot when restricting dates. For example: &lt;tt&gt;[&quot;03\\.08\\.03&quot;]&lt;/tt&gt;.
     */
<span id='Ext-form-DateField-cfg-autoCreate'>    /**
</span>     * @cfg {String/Object} autoCreate
     * A {@link Ext.DomHelper DomHelper element specification object}, or &lt;tt&gt;true&lt;/tt&gt; for the default element
     * specification object:&lt;pre&gt;&lt;code&gt;
     * autoCreate: {tag: &quot;input&quot;, type: &quot;text&quot;, size: &quot;10&quot;, autocomplete: &quot;off&quot;}
     * &lt;/code&gt;&lt;/pre&gt;
     */



( run in 1.403 second using v1.01-cache-2.11-cpan-b50b6a40fd4 )