Append table row via Javascript
static
appendRow
($table_id, $row)
Remove row by id
static
removeRowById
($table_id, $id)
Replace row by id
static
replaceRowById
($table_id, $id, $row)
Add an Action to the DataGrid
addAction
($action, [$label = null], [$image = null])
-
$action: A TDataGridAction object
-
$label
-
$image
Add an Action Group to the DataGrid
addActionGroup
($object)
-
$object: A TDataGridActionGroup object
Add a Column to the DataGrid
addColumn
($object, [$action = null])
-
$object: A TDataGridColumn object
-
$action
Add an object to the DataGrid
addItem
($object)
-
$object: An Active Record Object
Add objects to the DataGrid
addItems
($objects)
-
$objects: An array of Objects
Clear the DataGrid contents
clear
([$preserveHeader = TRUE], [$rows = 0])
Creates the DataGrid Structure
createModel
([$create_header = true])
disable the default click action
disableDefaultClick
()
Disable htmlspecialchars on output
disableHtmlConversion
()
Enable popover
enablePopover
($title, $content, [$popside = null], [$popcondition = null])
-
$title: Title
-
$content: Content
-
$popside
-
$popcondition
Enable fuse search
enableSearch
($input, $attributes)
-
$input: Field input for search
-
$attributes: Attribute name
Generate hidden fields
generateHiddenFields
()
Returns an array of TDataGridColumn
getColumns
()
Return datagrid height
getHeight
()
Return datagrid items
getItems
()
Get raw processed output data
getOutputData
()
Return the assigned PageNavigation object
getPageNavigation
()
Return the row by position
getRow
($position)
Find the row index by object attribute
getRowIndex
($attribute, $value)
-
$attribute: Object attribute
-
$value: Object value
Returns the total columns
getTotalColumns
()
Returns the DataGrid's width
getWidth
()
insert content
insert
($position, $content)
Redefinition of:
- TElement::insert()
- Insert an child element
Returns if datagrid is scrollable
isScrollable
()
Make the datagrid scrollable
makeScrollable
()
Prepare for printing
prepareForPrinting
()
Prepend row
prependRow
($row)
Set actions side
setActionSide
($side)
Set the column action width
setActionWidth
($width)
Set the group column for break
setGroupColumn
($column, $mask)
Define the Height
setHeight
($height)
-
$height: An integer containing the height
Define mutation action
setMutationAction
($action)
Assign a PageNavigation object
setPageNavigation
($pageNavigation)
Set serach attributes
setSearchAttributes
($attributes)
Inherited Methods
Inherited From TTable
TTable::__construct()
TTable::addRow()
TTable::addRowSet()
TTable::addSection()
TTable::create()
TTable::fromData()
Inherited From TElement
TElement::__construct()
TElement::add()
TElement::after()
TElement::clearChildren()
TElement::close()
TElement::closeTag()
TElement::del()
TElement::find()
TElement::get()
TElement::getAfterElement()
TElement::getChildren()
TElement::getContents()
TElement::getIsWrapped()
TElement::getName()
TElement::getProperties()
TElement::getProperty()
TElement::hide()
TElement::insert()
TElement::open()
TElement::openTag()
TElement::setIsWrapped()
TElement::setName()
TElement::setProperties()
TElement::setProperty()
TElement::setUseLineBreaks()
TElement::setUseSingleQuotes()
TElement::show()
TElement::tag()
TElement::__clone()
TElement::__get()
TElement::__isset()
TElement::__set()
TElement::__toString()
TElement::__unset()