Class CMaskedTextField
CMaskedTextField generates a masked text field.
CMaskedTextField is similar to CHtml::textField()
except that an input
mask will be used to help users enter properly formatted data. The masked text
field is implemented based on the jQuery masked input plugin (see http://digitalbush.com/projects/masked-input-plugin).
- CComponent
- CBaseController
- CWidget
- CInputWidget
- CMaskedTextField
Package: system\web\widgets
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/widgets/CMaskedTextField.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/widgets/CMaskedTextField.php
public
|
|
public
|
|
protected
array
|
hasModel(),
resolveNameID()
|
__construct(),
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
init(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
public
string
|
$mask |
|
#
the input mask (e.g. '99/99/9999' for date input). The following characters are
predefined:
CMaskedTextField::$charMap
property.
|
public
array
|
$charMap |
|
#
the mapping between mask characters and the corresponding patterns. For
example, array('~'=>'[+-]') specifies that the '~' character expects '+' or
'-' input. Defaults to null, meaning using the map as described in |
public
string
|
$placeholder |
|
#
the character prompting for user input. Defaults to underscore '_'. |
public
string
|
$completed |
|
#
a JavaScript function callback that will be invoked when user finishes the input. |
$attribute,
$htmlOptions,
$model,
$name,
$value
|
$actionPrefix,
$skin
|
$controller,
$id,
$owner,
$viewPath
|