function callback_request($sender, $param)
{
$this->active_cell->render($param->getNewWriter());
}
Please refer to the original documentation of the regular counterpart for usage.
Показать файл
Открыть проект
Метод | Описание | |
---|---|---|
__construct ( ) | Creates a new callback control, sets the adapter to TActiveControlAdapter. | |
getActiveControl ( ) : |
||
getCellIndex ( ) : integer | Returns the zero-based index of the TActiveTableCell within the {@link TTableCellCollection} of the parent {@link TTableRow} control. Raises a {@link TConfigurationException} if the cell is no member of the cell collection. | |
getClientSide ( ) : |
||
getRow ( ) : |
Returns the parent {@link TTableRow} control by looping through all parents until a {@link TTableRow} is found. Raises a {@link TConfigurationException} if no row control is found. | |
onCellSelected ( $param ) | This method is invoked when a callback is requested. The method raises 'OnCellSelected' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked. | |
raiseCallbackEvent ( $param ) | Raises the callback event. This method is required by {@link ICallbackEventHandler} interface. It will raise {@link onCellSelected OnCellSelected} event with a {@link TActiveTableCellEventParameter} containing the zero-based index of the TActiveTableCell. | |
render ( $writer ) | Renders and replaces the cell's content on the client-side. When render() is called before the OnPreRender event, such as when render() is called during a callback event handler, the rendering is defered until OnPreRender event is raised. |
Метод | Описание | |
---|---|---|
addAttributesToRender ( $writer ) | Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control if the event handler for the {@link onCellSelected OnCellSelected} event is set. | |
getClientClassName ( ) : string | ||
getPostBackOptions ( ) : array | Returns postback specifications for the table cell. |
public __construct ( ) |
protected addAttributesToRender ( $writer ) |
public getActiveControl ( ) : |
||
Результат | standard callback control options. |
public getCellIndex ( ) : integer | ||
Результат | integer | the zero-based index of the cell |
protected getClientClassName ( ) : string | ||
Результат | string | corresponding javascript class name for this TActiveTableCell. |
public getClientSide ( ) : |
||
Результат | client side request options. |
protected getPostBackOptions ( ) : array | ||
Результат | array | parameters about how the row defines its postback behavior. |
public getRow ( ) : |
||
Результат | the parent row control |
public onCellSelected ( $param ) |
public raiseCallbackEvent ( $param ) |
public render ( $writer ) |