Метод | Описание | |
---|---|---|
getAutoPostBack ( ) : boolean | ||
getCausesValidation ( ) : boolean | ||
getChecked ( ) : boolean | ||
getData ( ) : boolean | Returns the value indicating whether the checkbox is checked. | |
getDataChanged ( ) : boolean | Returns a value indicating whether postback has caused the control data change. | |
getEnableClientScript ( ) : boolean | ||
getInputAttributes ( ) : TMap | ||
getIsValid ( ) : boolean | Returns true if this control validated successfully. | |
getLabelAttributes ( ) : TMap | ||
getSurroundingTag ( ) : string | ||
getSurroundingTagID ( ) : string | ||
getText ( ) : string | ||
getTextAlign ( ) : |
||
getValidationGroup ( ) : string | ||
getValidationPropertyValue ( ) : mixed | Returns the value of the property that needs validation. | |
getValue ( ) : string | ||
loadPostData ( $key, $values ) : boolean | Loads user input data. | |
onCheckedChanged ( $param ) | Raises OnCheckedChanged event when {@link getChecked Checked} changes value during postback. | |
onPreRender ( $param ) | Registers the checkbox to receive postback data during postback. | |
raisePostDataChangedEvent ( ) | Raises postdata changed event. | |
render ( $writer ) | Renders the checkbox control. | |
setAutoPostBack ( $value ) | Sets a value indicating whether clicking on the checkbox will post the page. | |
setCausesValidation ( $value ) | Sets the value indicating whether postback event trigger by this checkbox will cause input validation. | |
setChecked ( $value ) | Sets a value indicating whether the checkbox is to be checked or not. | |
setData ( $value ) | Sets the value indicating whether the checkbox is to be checked or not. | |
setEnableClientScript ( $value ) | ||
setIsValid ( $value ) | ||
setText ( $value ) | Sets the text caption of the checkbox. | |
setTextAlign ( $value ) | ||
setValidationGroup ( $value ) | ||
setValue ( $value ) |
Метод | Описание | |
---|---|---|
getClientClassName ( ) : string | Gets the name of the javascript class responsible for performing postback for this control. | |
getPostBackOptions ( ) : array | Gets the post back options for this checkbox. | |
getSpanNeeded ( ) : boolean | Check if we need a span tag to surround this control. The span tag will be created if the Text property is set for this control. | |
getTagName ( ) : string | ||
getValueAttribute ( ) : string | ||
renderClientControlScript ( $writer ) | Renders the client-script code. | |
renderInputTag ( $writer, $clientID, $onclick ) | Renders a checkbox input element. | |
renderLabel ( $writer, $clientID, $text ) | Renders a label beside the checkbox. |
public getAutoPostBack ( ) : boolean | ||
Результат | boolean | whether clicking on the checkbox will post the page. |
public getCausesValidation ( ) : boolean | ||
Результат | boolean | whether postback event triggered by this checkbox will cause input validation, default is true. |
public getChecked ( ) : boolean | ||
Результат | boolean | whether the checkbox is checked |
protected getClientClassName ( ) : string | ||
Результат | string | the javascript class name |
public getDataChanged ( ) : boolean | ||
Результат | boolean | whether postback has caused the control data change. False if the page is not in postback mode. |
public getEnableClientScript ( ) : boolean | ||
Результат | boolean | whether to render javascript. |
public getInputAttributes ( ) : TMap | ||
Результат | TMap | list of attributes to be rendered for the checkbox |
public getIsValid ( ) : boolean | ||
Результат | boolean | wether this control validated successfully. |
public getLabelAttributes ( ) : TMap | ||
Результат | TMap | list of attributes to be rendered for label beside the checkbox |
protected getPostBackOptions ( ) : array | ||
Результат | array |
protected getSpanNeeded ( ) : boolean | ||
Результат | boolean | wether this control needs a surrounding span tag |
public getSurroundingTag ( ) : string | ||
Результат | string | the tag used to wrap the control in. |
public getSurroundingTagID ( ) : string | ||
Результат | string | the id of the surrounding tag or this clientID if no such tag needed. |
protected getTagName ( ) : string | ||
Результат | string | tag name of the button |
public getTextAlign ( ) : |
||
Результат | the alignment (Left or Right) of the text caption, defaults to TTextAlign::Right. |
public getValidationGroup ( ) : string | ||
Результат | string | the group of validators which the checkbox causes validation upon postback |
public getValidationPropertyValue ( ) : mixed | ||
Результат | mixed | the property value to be validated |
protected getValueAttribute ( ) : string | ||
Результат | string | the value attribute to be rendered |
public loadPostData ( $key, $values ) : boolean | ||
Результат | boolean | whether the data of the control has been changed |
public onCheckedChanged ( $param ) |
public onPreRender ( $param ) |
public raisePostDataChangedEvent ( ) |
public render ( $writer ) |
protected renderClientControlScript ( $writer ) |
protected renderInputTag ( $writer, $clientID, $onclick ) |
protected renderLabel ( $writer, $clientID, $text ) |
public setAutoPostBack ( $value ) |
public setCausesValidation ( $value ) |
public setChecked ( $value ) |
public setData ( $value ) |