API Documentação da API
Lançado Adianti Framework 8.0!
Clique aqui para saber mais
Pacote Dominando o Adianti Framework
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de Exemplo.
API
API do Framework
Documentation

Documentation

TDataGridColumn
in package

Representes a DataGrid column

Tags
version
8.0
subpackage

datagrid

author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Properties

$action  : mixed
$align  : mixed
$dataProperties  : mixed
$editaction  : mixed
$htmlConversion  : mixed
$inputSearch  : mixed
$label  : mixed
$name  : mixed
$printable  : mixed
$properties  : mixed
$searchable  : mixed
$totalCallback  : mixed
$totalFunction  : mixed
$totalMask  : mixed
$totalTransformed  : mixed
$transformer  : mixed
$width  : mixed

Methods

__construct()  : mixed
Class Constructor
__set()  : mixed
Intercepts whenever someones assign a new property's value
disableHtmlConversion()  : mixed
Disable htmlspecialchars on output
disablePrinting()  : mixed
Disable in exporting formats
enableAutoHide()  : mixed
Enable column auto hide
enableHtmlConversion()  : mixed
Enable htmlspecialchars on output
enableSearch()  : mixed
Enable column search
enableTotal()  : mixed
Enable total
getAction()  : the
Returns the action defined by set_action() method
getAlign()  : mixed
Returns the column's align
getDataProperties()  : mixed
Return data properties
getDataProperty()  : mixed
Return a data property
getEditAction()  : the
Returns the action defined by setEditAction() method
getInputSearch()  : mixed
Get input search
getLabel()  : mixed
Returns the column's label
getName()  : mixed
Returns the database column's name
getProperties()  : mixed
Return column properties
getProperty()  : mixed
Return a column property
getTotalCallback()  : mixed
Returns the callback defined by the setTotalFunction()
getTotalFunction()  : mixed
Returns total function
getTotalMask()  : mixed
Returns total mask
getTransformer()  : mixed
Returns the callback defined by the setTransformer()
getWidth()  : mixed
Returns the column's width
hasHtmlConversionEnabled()  : mixed
return if has html conversion
isPrintable()  : mixed
Returns if column is printable
isSearchable()  : mixed
Returns if column is searchable
removeAction()  : mixed
Remove action
setAction()  : mixed
Define the action to be executed when the user clicks over the column header
setDataProperty()  : mixed
Define a data property
setEditAction()  : mixed
Define the action to be executed when the user clicks do edit the column
setLabel()  : mixed
Set the column's label
setProperty()  : mixed
Define a column header property
setTotalFunction()  : mixed
Define a callback function to totalize column
setTransformer()  : mixed
Define a callback function to be applyed over the column's data
setVisibility()  : mixed
Define column visibility
totalTransformed()  : mixed
Is total transformed

Properties

Methods

__construct()

Class Constructor

public __construct(mixed $name, mixed $label, mixed $align[, mixed $width = NULL ]) : mixed
Parameters
$name : mixed

= Name of the column in the database

$label : mixed

= Text label that will be shown in the header

$align : mixed

= Column align (left, center, right)

$width : mixed = NULL

= Column Width (pixels)

__set()

Intercepts whenever someones assign a new property's value

public __set(mixed $name, mixed $value) : mixed
Parameters
$name : mixed

Property Name

$value : mixed

Property Value

disableHtmlConversion()

Disable htmlspecialchars on output

public disableHtmlConversion() : mixed

disablePrinting()

Disable in exporting formats

public disablePrinting() : mixed

enableAutoHide()

Enable column auto hide

public enableAutoHide(mixed $width) : mixed
Parameters
$width : mixed

enableHtmlConversion()

Enable htmlspecialchars on output

public enableHtmlConversion() : mixed

enableTotal()

Enable total

public enableTotal(mixed $function[, mixed $prefix = null ][, mixed $decimals = 2 ][, mixed $decimal_separator = ',' ][, mixed $thousand_separator = '.' ]) : mixed
Parameters
$function : mixed
$prefix : mixed = null
$decimals : mixed = 2
$decimal_separator : mixed = ','
$thousand_separator : mixed = '.'

getAction()

Returns the action defined by set_action() method

public getAction() : the
Return values
the

action to be executed when the user clicks over the column header

getDataProperties()

Return data properties

public getDataProperties() : mixed

getDataProperty()

Return a data property

public getDataProperty(mixed $name) : mixed
Parameters
$name : mixed

Property Name

getEditAction()

Returns the action defined by setEditAction() method

public getEditAction() : the
Return values
the

action to be executed when the user clicks do edit the column

getName()

Returns the database column's name

public getName() : mixed

getProperties()

Return column properties

public getProperties() : mixed

getProperty()

Return a column property

public getProperty(mixed $name) : mixed
Parameters
$name : mixed

Property Name

getTotalCallback()

Returns the callback defined by the setTotalFunction()

public getTotalCallback() : mixed

getTotalFunction()

Returns total function

public getTotalFunction() : mixed

getTransformer()

Returns the callback defined by the setTransformer()

public getTransformer() : mixed

hasHtmlConversionEnabled()

return if has html conversion

public hasHtmlConversionEnabled() : mixed

isPrintable()

Returns if column is printable

public isPrintable() : mixed

isSearchable()

Returns if column is searchable

public isSearchable() : mixed

setAction()

Define the action to be executed when the user clicks over the column header

public setAction(mixed $action[, mixed $parameters = null ]) : mixed
Parameters
$action : mixed

TAction object

$parameters : mixed = null

Action parameters

setDataProperty()

Define a data property

public setDataProperty(mixed $name, mixed $value) : mixed
Parameters
$name : mixed

Property Name

$value : mixed

Property Value

setLabel()

Set the column's label

public setLabel(mixed $label) : mixed
Parameters
$label : mixed

column label

setProperty()

Define a column header property

public setProperty(mixed $name, mixed $value) : mixed
Parameters
$name : mixed

Property Name

$value : mixed

Property Value

setTotalFunction()

Define a callback function to totalize column

public setTotalFunction(mixed $callback[, mixed $apply_transformer = true ]) : mixed
Parameters
$callback : mixed

A function name of a method of an object

$apply_transformer : mixed = true

Apply transform function also in total

setTransformer()

Define a callback function to be applyed over the column's data

public setTransformer(mixed $callback) : mixed
Parameters
$callback : mixed

A function name of a method of an object

setVisibility()

Define column visibility

public setVisibility(mixed $bool) : mixed
Parameters
$bool : mixed

totalTransformed()

Is total transformed

public totalTransformed() : mixed

        
On this page

Search results