Class ItemListField
This class describes the field displayed in a smart list. All properties of an instance of this class can be scalar, or a function taking as arguments : - $value The value of the cell - $field The field itself - $line All the values in the list results line
Methods summary
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
Properties summary
public
|
$name
The name of the field in the list. Must be unique for each field in a list |
|
public
string
|
$field
The field name in the search table |
#
null
|
public
string|callable
|
$class
The class attribute to add to the result cell |
#
null
|
public
string|callable
|
$title
The 'title' attribute on hover on the cell |
#
null
|
public
string|callable
|
$href
This property, if set, will permit to open the set URL in the target defined by the property $target on a click event |
#
null
|
public
string|callable
|
$target
The target where to open the URL defined in $href property |
#
null
|
public
string|callable
|
$onclick
The 'onclick' attribute |
#
null
|
public
string|callable
|
$style
The 'style' attribute |
#
null
|
public
string|callable
|
$unit
A unit to add after the value of the cell |
#
null
|
public
string|callable
|
$display
Define if you want a specific displaying for this cell |
#
null
|
public
boolean
|
$sort
Display the widgets to sort the list by this field values |
#
true
|
public
string
|
$sortValue
The sort value |
#
null
|
public
boolean
|
$search
Displays the serach input for this field |
#
true
|
public
string
|
$searchValue
The search value |
#
null
|
public
boolean
|
$independant
If set to true, this field will not be searched in the database |
#
false
|
public
string
|
$label
The label to display in the list header |
#
null
|
public
|
$list
The list the field is associated with |
#
null
|