프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$actionColumn | the settings for the action column. If set to false, the action column will not be displayed. | ||
$checkboxColumn | the settings for the checkbox column. If set to false, the checkbox column will not be displayed. | ||
$compositeKeySeparator | the separator for the composite keys available as an array. | ||
$dataProvider | the data provider for the tabular form. This property is required. It must return a valid list of models for rendering the tabular form inputs. | ||
$gridClass | the namespaced GridView class name. Defaults to '\kartik\grid\GridView'. Any other class set here must extend from '\kartik\grid\GridView'. | ||
$gridSettings | the settings for [[GridView]] widget which will display the tabular form content. | ||
$rowHighlight | highlight current row if checkbox is checked. | ||
$rowSelectedClass | the CSS class to apply to a row when the row is selected. | ||
$serialColumn | the settings for the serial column. If set to false, the serial column will not be displayed. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_columns | the grid columns |
메소드 | 설명 | |
---|---|---|
init ( ) | ||
run ( ) |
메소드 | 설명 | |
---|---|---|
checkValidSetting ( string $attr, array $settings, string $key, string $type ) | Checks if a setting is of valid type and throws exception if not. | |
getCellValue ( string $attribute, mixed $settings ) : string | Generates a cell value. | |
getStaticInput ( string $type, |
Generates the static input | |
initActionColumn ( ) | Initializes the action column. | |
initCheckboxColumn ( ) | Initializes the checkbox column. | |
initColumn ( string $type ) | Initializes special columns | |
initDataColumns ( ) | Initializes the data columns. | |
initOptions ( ) | Initializes the widget options | |
initSerialColumn ( ) | Initializes the serial column. | |
isColumnSet ( string $type ) : boolean | Checks if a grid column is set correctly. | |
registerAssets ( ) | Registers the TabularForm widget assets. | |
renderGrid ( ) : string | Render the grid content. | |
slash ( string $str = '' ) : string | Prepends with a back slash if necessary for full namespace validation. |
protected getStaticInput ( string $type, |
||
$type | string | the static input type. |
$model | the data model. | |
$index | integer | the zero based index of the item in dataProvider. |
$settings | array | the attribute settings. |
$attribute | string | the attribute. |
$formatter | the formatter instance. | |
리턴 | string | the generated static input. |
protected initColumn ( string $type ) | ||
$type | string | the grid column type (one of 'serial', 'action', 'checkbox') |
protected isColumnSet ( string $type ) : boolean | ||
$type | string | the grid column type (one of 'serial', 'action', 'checkbox'). |
리턴 | boolean | whether the column is set. |
protected renderGrid ( ) : string | ||
리턴 | string | the rendered gridview |
public $actionColumn |
public $checkboxColumn |
public $compositeKeySeparator |
public $dataProvider |
public $gridClass |
public $gridSettings |
public $rowSelectedClass |