📄 form.datefield.tag
字号:
<%--
ExtJS Tag Library (ExtTLD)
Copyright (C) 2008 Jaroslav Benc <jaroslav.benc@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
===========================================================================
BY USING THIS LIBRARY YOU CONFIRM THAT YOU HAVE READ, UNDERSTOOD AND ACCEPT
OUR ETHICAL CRITERIA LISTED ON THE EXTTLD WEBSITE (WWW.EXTTLD.COM)
===========================================================================
--%>
<%-- Config params _____________________________START --%>
<%@ attribute
name="allowBlank"
type="java.lang.Boolean"
required="false"
description="
(Boolean)False to validate that the value length > 0 (defaults to true)
" %>
<%@ attribute
name="allowDomMove"
type="java.lang.Boolean"
required="false"
description="
(Boolean)Whether the component can move the Dom node when rendering (defaults to true).
" %>
<%@ attribute
name="altFormats"
type="java.lang.String"
required="false"
description="
(String)Multiple date formats separated by '|' to try when parsing a user input value and it doesn't match the defined format (defaults to 'm/d/Y|m-d-y|m-d-Y|m/d|m-d|d').
" %>
<%@ attribute
name="applyTo"
type="java.lang.String"
required="false"
description="
(Mixed)The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for renderTo will be ignored and the target element's parent node will automatically be used as the component's container.
" %>
<%@ attribute
name="autoCreate"
type="java.lang.String"
required="false"
description="
(String/Object)A DomHelper element spec, or true for a default element spec (defaults to {tag: 'input', type: 'text', size: '10', autocomplete: 'off'})
" %>
<%@ attribute
name="autoHeight"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to use height:'auto', false to use fixed height (defaults to false).
" %>
<%@ attribute
name="autoShow"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render (defaults to false).
" %>
<%@ attribute
name="autoWidth"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to use width:'auto', false to use fixed width (defaults to false).
" %>
<%@ attribute
name="blankText"
type="java.lang.String"
required="false"
description="
(String)Error text to display if the allow blank validation fails (defaults to 'This field is required')
" %>
<%@ attribute
name="clearCls"
type="java.lang.String"
required="false"
description="
(String)The CSS class used to provide field clearing (defaults to 'x-form-clear-left')
" %>
<%@ attribute
name="cls"
type="java.lang.String"
required="false"
description="
(String)An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for adding customized styles to the component or any of its children using standard CSS rules.
" %>
<%@ attribute
name="ctCls"
type="java.lang.String"
required="false"
description="
(String)An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules.
" %>
<%@ attribute
name="disableKeyFilter"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to disable input keystroke filtering (defaults to false)
" %>
<%@ attribute
name="disabled"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to disable the field (defaults to false).
" %>
<%@ attribute
name="disabledClass"
type="java.lang.String"
required="false"
description="
(String)CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
" %>
<%@ attribute
name="disabledDates"
type="java.lang.String"
required="false"
description="
(Array)An array of 'dates' to disable, as strings. These strings will be used to build a dynamic regular expression so they are very powerful. Some examples:
* ['03/08/2003', '09/16/2003'] would disable those exact dates
* ['03/08', '09/16'] would disable those days for every year
* ['^03/08'] would only match the beginning (useful if you are using short years)
* ['03/../2006'] would disable every day in March 2006
* ['^03'] would disable every day in every March
In order to support regular expressions, if you are using a date format that has '.' in it, you will have to escape the dot when restricting dates. For example: ['03\\.08\\.03'].
" %>
<%@ attribute
name="disabledDatesText"
type="java.lang.String"
required="false"
description="
(String)The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled')
" %>
<%@ attribute
name="disabledDays"
type="java.lang.String"
required="false"
description="
(Array)An array of days to disable, 0 based. For example, [0, 6] disables Sunday and Saturday (defaults to null).
" %>
<%@ attribute
name="disabledDaysText"
type="java.lang.String"
required="false"
description="
(String)The tooltip to display when the date falls on a disabled day (defaults to 'Disabled')
" %>
<%@ attribute
name="emptyClass"
type="java.lang.String"
required="false"
description="
(String)The CSS class to apply to an empty field to style the emptyText (defaults to 'x-form-empty-field'). This class is automatically added and removed as needed depending on the current field value.
" %>
<%@ attribute
name="emptyText"
type="java.lang.String"
required="false"
description="
(String)The default text to display in an empty field (defaults to null).
" %>
<%@ attribute
name="fieldClass"
type="java.lang.String"
required="false"
description="
(String)The default CSS class for the field (defaults to 'x-form-field')
" %>
<%@ attribute
name="fieldLabel"
type="java.lang.String"
required="false"
description="
(String)The label text to display next to this field (defaults to '')
" %>
<%@ attribute
name="focusClass"
type="java.lang.String"
required="false"
description="
(String)The CSS class to use when the field receives focus (defaults to 'x-form-focus')
" %>
<%@ attribute
name="format"
type="java.lang.String"
required="false"
description="
(String)The default date format string which can be overriden for localization support. The format must be valid according to Date.parseDate (defaults to 'm/d/y').
" %>
<%@ attribute
name="height"
type="java.lang.Integer"
required="false"
description="
(Number)The height of this component in pixels (defaults to auto).
" %>
<%@ attribute
name="hideLabel"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to completely hide the label element (defaults to false)
" %>
<%@ attribute
name="hideMode"
type="java.lang.String"
required="false"
description="
(String)How this component should hidden. Supported values are 'visibility' (css visibility), 'offsets' (negative offset position) and 'display' (css display) - defaults to 'display'.
" %>
<%@ attribute
name="hideParent"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide button on a window by setting hide:true on the button when adding it to its parent container.
" %>
<%@ attribute
name="hideTrigger"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to hide the trigger element and display only the base text field (defaults to false)
" %>
<%@ attribute
name="id"
type="java.lang.String"
required="false"
description="
(String)The unique id of this component (defaults to an auto-assigned id).
" %>
<%@ attribute
name="inputType"
type="java.lang.String"
required="false"
description="
(String)The type attribute for input fields -- e.g. radio, text, password (defaults to 'text').
" %>
<%@ attribute
name="invalidClass"
type="java.lang.String"
required="false"
description="
(String)The CSS class to use when marking a field invalid (defaults to 'x-form-invalid')
" %>
<%@ attribute
name="invalidText"
type="java.lang.String"
required="false"
description="
(String)The error text to display when the date in the field is invalid (defaults to '{value} is not a valid date - it must be in the format {format}').
" %>
<%@ attribute
name="itemCls"
type="java.lang.String"
required="false"
description="
(String)An additional CSS class to apply to this field (defaults to the container's itemCls value if set, or '')
" %>
<%@ attribute
name="labelSeparator"
type="java.lang.String"
required="false"
description="
(String)The standard separator to display after the text of each form label (defaults to the value of Ext.layout.FormLayout.labelSeparator, which is a colon ':' by default). To display no separator for this field's label specify empty string ''.
" %>
<%@ attribute
name="labelStyle"
type="java.lang.String"
required="false"
description="
(String)A CSS style specification to apply directly to this field's label (defaults to the container's labelStyle value if set, or ''). For example, labelStyle: 'font-weight:bold;'.
" %>
<%@ attribute
name="listeners"
type="java.lang.Object"
required="false"
description="
(Object)A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
" %>
<%@ attribute
name="maskRe"
type="java.lang.String"
required="false"
description="
(RegExp)An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)
" %>
<%@ attribute
name="maxLength"
type="java.lang.Integer"
required="false"
description="
(Number)Maximum input field length allowed (defaults to Number.MAX_VALUE)
" %>
<%@ attribute
name="maxLengthText"
type="java.lang.String"
required="false"
description="
(String)Error text to display if the maximum length validation fails (defaults to 'The maximum length for this field is {maxLength}')
" %>
<%@ attribute
name="maxText"
type="java.lang.String"
required="false"
description="
(String)The error text to display when the date in the cell is after maxValue (defaults to 'The date in this field must be before {maxValue}').
" %>
<%@ attribute
name="maxValue"
type="java.lang.String"
required="false"
description="
(Date/String)The maximum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to null).
" %>
<%@ attribute
name="minLength"
type="java.lang.Integer"
required="false"
description="
(Number)Minimum input field length required (defaults to 0)
" %>
<%@ attribute
name="minLengthText"
type="java.lang.String"
required="false"
description="
(String)Error text to display if the minimum length validation fails (defaults to 'The minimum length for this field is {minLength}')
" %>
<%@ attribute
name="minText"
type="java.lang.String"
required="false"
description="
(String)The error text to display when the date in the cell is before minValue (defaults to 'The date in this field must be after {minValue}').
" %>
<%@ attribute
name="minValue"
type="java.lang.String"
required="false"
description="
(Date/String)The minimum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to null).
" %>
<%@ attribute
name="msgFx"
type="java.lang.String"
required="false"
description="
(String)Experimental The effect used when displaying a validation message under the field (defaults to 'normal').
" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -