메소드 |
설명 |
|
addAttributes ( array $attrs ) : static |
Set attributes for both th and td element |
|
applyReplacements ( Row $row ) : array |
Apply replacements |
|
getAlign ( ) : string |
Get column alignment |
|
getColumn ( ) : string |
|
|
getColumnName ( ) : string |
Get column name |
|
getColumnValue ( Row $row ) : mixed |
Get column value of row item |
|
getDefaultHide ( ) |
|
|
getEditableCallback ( ) : callable |
Return callback that is used after inline editing |
|
getEditableInputType ( ) : array |
[getEditableInputType description] |
|
getElementPrototype ( string $tag, string $key = NULL, Row $row = NULL ) : Nette\Utils\Html |
Get th/td column element |
|
getName ( ) : string |
|
|
getRenderer ( ) : Renderer | null |
Return custom renderer callback |
|
getSortNext ( ) : array |
What sorting will be applied after next click? |
|
getSortableCallback ( ) : callable | null |
Get custom ORDER BY clause |
|
getSortingColumn ( ) : string |
Get column to sort by |
|
getTemplate ( ) : string |
Get column template path |
|
getTemplateVariables ( ) : array |
Column can have variables that will be passed to custom template scope |
|
hasAlign ( ) : boolean |
Has column some alignment? |
|
hasReplacements ( ) : boolean |
Tell whether columns has replacements |
|
hasSortNext ( ) : boolean |
|
|
hasTemplate ( ) : boolean |
Tell whether column has its owntemplate |
|
isEditable ( ) : boolean |
Is column editable? |
|
isHeaderEscaped ( ) |
|
|
isSortAsc ( ) : boolean |
Is sorting ascending? |
|
isSortable ( ) : boolean |
Tell whether column is sortable |
|
isSortedBy ( ) : boolean |
Tell whether data source is sorted by this collumn |
|
isTemplateEscaped ( ) |
|
|
render ( Row $row ) : mixed |
Render row item into template |
|
setAlign ( string $align ) |
Set column alignment |
|
setDefaultHide ( boolean $default_hide = TRUE ) : static |
|
|
setEditableCallback ( callable $editable_callback ) |
Set callback that will be called after inline editing |
|
setEditableInputType ( string $el_type, array $attrs = [] ) : static |
Element is by default textarea, user can change that |
|
setEditableInputTypeSelect ( array $options = [] ) : static |
Change small inline edit input type to select |
|
setFitContent ( boolean $fit_content = TRUE ) |
Set column content fit |
|
setHeaderEscaping ( boolean $header_escaping = FALSE ) |
Should be column header escaped in latte? |
|
setRenderer ( callable $renderer, $condition_callback = NULL ) |
Set renderer callback and (it may be optional - the condition callback will decide) |
|
setRendererOnCondition ( callable $renderer, $condition_callback ) |
Set renderer callback just if condition is truthy |
|
setReplacement ( array $replacements ) : Column |
Set column replacements |
|
setSort ( array $sort ) |
Tell column his sorting options |
|
setSortable ( boolean | string $sortable = TRUE ) |
Set column sortable or not |
|
setSortableCallback ( callable $sortable_callback ) : static |
Set custom ORDER BY clause |
|
setSortableResetPagination ( boolean $sortable_reset_pagination = TRUE ) : static |
Shoud be the pagination reseted after sorting? |
|
setTemplate ( string $template, array $template_variables = [] ) |
Column may have its own template |
|
setTemplateEscaping ( boolean $template_escaping = TRUE ) |
Should be column values escaped in latte? |
|
sortableResetPagination ( ) : boolean |
Do reset pagination after sorting? |
|
useRenderer ( Row $row ) : mixed |
Try to render item with custom renderer |
|