Class CC_HTMLElement
Base class HTMLElement
Indirect known subclasses
CC_CCLI_Button
,
CC_Checkbox
,
CC_TextField
,
CC_UrlField
,
CC_ColorField
,
CC_EmailField
,
CC_FileUpload
,
CC_HiddenField
,
CC_NumberField
,
CC_PasswordField
,
CC_TelefonField
,
CC_TextArea
Methods summary
public
|
#
__construct( string $name, string $class, string/array $fieldWidth = false )
Constructor fieldWidth is an array of column widths for bootstraps 12 column grid a number (used for md) or an array ('sm'=>8, 'md'=>6, 'lg'=>3) |
public
|
#
getBootstrapClasses( string/array $fieldWidth )
create col-xs-x, col-sm-x, col-md-x, col-lg-x bootstrap classes to limit input width if string is given it will be converted to array('md'=>string), preset names xs, sm, md, lg has no relation to likewise names in bootstrap, it means different input widths in this case |
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
protected
string
|
#
wrapRow( string $content, $addClass = '' )
Wrap row in < div class='row'> < div class='form-group addClasses'> |
protected
string
|
#
wrapInput( string $input, $withOffset = false )
Wrap input in < div class='getFieldWidthClasses()'> |
public
|
|
public
|