PHP Class Prado\Web\UI\WebControls\TDataList

TDataList represents a data bound and updatable list control. Like {@link TRepeater}, TDataList displays its content repeatedly based on the data fetched from {@link setDataSource DataSource}. The repeated contents in TDataList are called items, which are controls and can be accessed through {@link getItems Items}. When {@link dataBind()} is invoked, TDataList creates an item for each row of data and binds the data row to the item. Optionally, a TDataList can have a header, a footer and/or separators between items. TDataList differs from {@link TRepeater} in that it supports tiling the items in different manners and it maintains status of items to handle data update. The layout of the repeated contents are specified by inline templates. TDataList items, header, footer, etc. are being instantiated with the corresponding templates when data is being bound to the repeater. Since v3.1.0, the layout can also be by renderers. A renderer is a control class that can be instantiated as datalist items, header, etc. A renderer can thus be viewed as an external template (in fact, it can also be non-templated controls). A renderer can be any control class. - If the class implements {@link \Prado\IDataRenderer}, the Data property will be set as the data row during databinding. Many PRADO controls implement this interface, such as {@link TLabel}, {@link TTextBox}, etc. - If the class implements {@link IItemDataRenderer}, the ItemIndex property will be set as the zero-based index of the item in the datalist item collection, and the ItemType property as the item's type (such as TListItemType::Item). {@link TDataListItemRenderer} may be used as the convenient base class which already implements {@link IDataItemRenderer}. The following properties are used to specify different types of template and renderer for a datalist: - {@link setItemTemplate ItemTemplate}, {@link setItemRenderer ItemRenderer}: for each repeated row of data - {@link setAlternatingItemTemplate AlternatingItemTemplate}, {@link setAlternatingItemRenderer AlternatingItemRenderer}: for each alternating row of data. If not set, {@link setItemTemplate ItemTemplate} or {@link setItemRenderer ItemRenderer} will be used instead. - {@link setHeaderTemplate HeaderTemplate}, {@link setHeaderRenderer HeaderRenderer}: for the datalist header. - {@link setFooterTemplate FooterTemplate}, {@link setFooterRenderer FooterRenderer}: for the datalist footer. - {@link setSeparatorTemplate SeparatorTemplate}, {@link setSeparatorRenderer SeparatorRenderer}: for content to be displayed between items. - {@link setEmptyTemplate EmptyTemplate}, {@link setEmptyRenderer EmptyRenderer}: used when data bound to the datalist is empty. - {@link setEditItemTemplate EditItemTemplate}, {@link setEditItemRenderer EditItemRenderer}: for the row being editted. - {@link setSelectedItemTemplate SelectedItemTemplate}, {@link setSelectedItemRenderer SelectedItemRenderer}: for the row being selected. If a content type is defined with both a template and a renderer, the latter takes precedence. When {@link dataBind()} is being called, TDataList undergoes the following lifecycles for each row of data: - create item based on templates or renderers - set the row of data to the item - raise {@link onItemCreated OnItemCreated}: - add the item as a child control - call dataBind() of the item - raise {@link onItemDataBound OnItemDataBound}: TDataList raises an {@link onItemCommand OnItemCommand} whenever a button control within some datalist item raises a OnCommand event. Therefore, you can handle all sorts of OnCommand event in a central place by writing an event handler for {@link onItemCommand OnItemCommand}. An additional event is raised if the OnCommand event has one of the following command names: - edit: user wants to edit an item. OnEditCommand event will be raised. - update: user wants to save the change to an item. OnUpdateCommand event will be raised. - select: user selects an item. OnSelectedIndexChanged event will be raised. - delete: user deletes an item. OnDeleteCommand event will be raised. - cancel: user cancels previously editting action. OnCancelCommand event will be raised. TDataList provides a few properties to support tiling the items. The number of columns used to display the data items is specified via {@link setRepeatColumns RepeatColumns} property, while the {@link setRepeatDirection RepeatDirection} governs the order of the items being rendered. The layout of the data items in the list is specified via {@link setRepeatLayout RepeatLayout}, which can take one of the following values: - Table (default): items are organized using HTML table and cells. When using this layout, one can set {@link setCellPadding CellPadding} and {@link setCellSpacing CellSpacing} to adjust the cellpadding and cellpadding of the table, and {@link setCaption Caption} and {@link setCaptionAlign CaptionAlign} to add a table caption with the specified alignment. - Flow: items are organized using HTML spans and breaks. - Raw: TDataList does not generate any HTML tags to do the tiling. Items in TDataList can be in one of the three status: normal browsing, being editted and being selected. To change the status of a particular item, set {@link setSelectedItemIndex SelectedItemIndex} or {@link setEditItemIndex EditItemIndex}. The former will change the indicated item to selected mode, which will cause the item to use {@link setSelectedItemTemplate SelectedItemTemplate} or {@link setSelectedItemRenderer SelectedItemRenderer} for presentation. The latter will change the indicated item to edit mode and to use corresponding template or renderer. Note, if an item is in edit mode, then selecting this item will have no effect. Different styles may be applied to items in different status. The style application is performed in a hierarchical way: Style in higher hierarchy will inherit from styles in lower hierarchy. Starting from the lowest hierarchy, the item styles include - item's own style - {@link getItemStyle ItemStyle} - {@link getAlternatingItemStyle AlternatingItemStyle} - {@link getSelectedItemStyle SelectedItemStyle} - {@link getEditItemStyle EditItemStyle}. Therefore, if background color is set as red in {@link getItemStyle ItemStyle}, {@link getEditItemStyle EditItemStyle} will also have red background color unless it is set to a different value explicitly. When a page containing a datalist is post back, the datalist will restore automatically all its contents, including items, header, footer and separators. However, the data row associated with each item will not be recovered and become null. To access the data, use one of the following ways: - Use {@link getDataKeys DataKeys} to obtain the data key associated with the specified datalist item and use the key to fetch the corresponding data from some persistent storage such as DB. - Save the whole dataset in viewstate, which will restore the dataset automatically upon postback. Be aware though, if the size of your dataset is big, your page size will become big. Some complex data may also have serializing problem if saved in viewstate.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TBaseDataList, implements Prado\Web\UI\INamingContainer, implements IRepeatInfoUser
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
bubbleEvent ( $sender, $param ) : boolean This method overrides parent's implementation to handle {@link onItemCommand OnItemCommand} event which is bubbled from datalist items and their child controls.
generateItemStyle ( $itemType, $index ) : TStyle Returns a style used for rendering items.
getAlternatingItemRenderer ( ) : string
getAlternatingItemStyle ( ) : TTableItemStyle
getAlternatingItemTemplate ( ) : Prado\Web\UI\ITemplate
getCaption ( ) : string
getCaptionAlign ( ) : TTableCaptionAlign
getEditItem ( ) : TControl
getEditItemIndex ( ) : integer
getEditItemRenderer ( ) : string
getEditItemStyle ( ) : TTableItemStyle
getEditItemTemplate ( ) : Prado\Web\UI\ITemplate
getEmptyRenderer ( ) : string
getEmptyTemplate ( ) : Prado\Web\UI\ITemplate
getFooter ( ) : TControl
getFooterRenderer ( ) : string
getFooterStyle ( ) : TTableItemStyle
getFooterTemplate ( ) : Prado\Web\UI\ITemplate
getHasFooter ( ) : boolean Returns a value indicating whether this control contains footer item.
getHasHeader ( ) : boolean Returns a value indicating whether this control contains header item.
getHasSeparators ( ) : boolean Returns a value indicating whether this control contains separator items.
getHeader ( ) : TControl
getHeaderRenderer ( ) : string
getHeaderStyle ( ) : TTableItemStyle
getHeaderTemplate ( ) : Prado\Web\UI\ITemplate
getItemCount ( ) : integer
getItemRenderer ( ) : string
getItemStyle ( ) : TTableItemStyle
getItemTemplate ( ) : Prado\Web\UI\ITemplate
getItems ( ) : TDataListItemCollection
getRepeatColumns ( ) : integer
getRepeatDirection ( ) : TRepeatDirection
getRepeatLayout ( ) : TRepeatLayout
getSelectedDataKey ( ) : mixed
getSelectedItem ( ) : TControl
getSelectedItemIndex ( ) : integer
getSelectedItemRenderer ( ) : string
getSelectedItemStyle ( ) : TTableItemStyle
getSelectedItemTemplate ( ) : Prado\Web\UI\ITemplate
getSeparatorRenderer ( ) : string
getSeparatorStyle ( ) : TTableItemStyle
getSeparatorTemplate ( ) : Prado\Web\UI\ITemplate
getShowFooter ( ) : boolean
getShowHeader ( ) : boolean
loadState ( ) Loads item count information from viewstate.
onCancelCommand ( $param ) Raises OnCancelCommand event.
onDeleteCommand ( $param ) Raises OnDeleteCommand event.
onEditCommand ( $param ) Raises OnEditCommand event.
onItemCommand ( $param ) Raises OnItemCommand event.
onItemCreated ( $param ) Raises OnItemCreated event.
onItemDataBound ( $param ) Raises OnItemDataBound event.
onUpdateCommand ( $param ) Raises OnUpdateCommand event.
render ( $writer ) Renders the data list control.
renderItem ( $writer, $repeatInfo, $itemType, $index ) Renders an item in the list.
reset ( ) Clears up all items in the data list.
saveState ( ) Saves item count in viewstate.
setAlternatingItemRenderer ( $value ) Sets the alternative item renderer class.
setAlternatingItemTemplate ( $value )
setCaption ( $value )
setCaptionAlign ( $value ) : TTableCaptionAlign
setEditItemIndex ( $value ) Edits an item by its index in {@link getItems Items}.
setEditItemRenderer ( $value ) Sets the renderer class for the datalist item being editted.
setEditItemTemplate ( $value )
setEmptyRenderer ( $value ) Sets the datalist empty renderer class.
setEmptyTemplate ( $value )
setFooterRenderer ( $value ) Sets the datalist footer renderer class.
setFooterTemplate ( $value )
setHeaderRenderer ( $value ) Sets the datalist header renderer class.
setHeaderTemplate ( $value )
setItemRenderer ( $value ) Sets the item renderer class.
setItemTemplate ( $value )
setRepeatColumns ( $value )
setRepeatDirection ( $value )
setRepeatLayout ( $value )
setSelectedItemIndex ( $value ) Selects an item by its index in {@link getItems Items}.
setSelectedItemRenderer ( $value ) Sets the renderer class for the datalist item being selected.
setSelectedItemTemplate ( $value )
setSeparatorRenderer ( $value ) Sets the datalist item separator renderer class.
setSeparatorTemplate ( $value )
setShowFooter ( $value )
setShowHeader ( $value )

Méthodes protégées

Méthode Description
applyItemStyles ( ) Applies styles to items, header, footer and separators.
createEmptyContent ( ) Creates empty datalist content.
createItem ( $itemIndex, $itemType ) : TControl Creates a datalist item instance based on the item type and index.
getRepeatInfo ( ) : TRepeatInfo
performDataBinding ( $data ) Performs databinding to populate data list items from data source.
restoreItemsFromViewState ( ) Creates data list items based on viewstate information.

Private Methods

Méthode Description
createItemInternal ( $itemIndex, $itemType ) : TControl Creates a datalist item.
createItemWithDataInternal ( $itemIndex, $itemType, $dataItem ) : TControl Creates a datalist item and performs databinding.
getAlternatingItemDisplay ( )
getEditItemDisplay ( $itemIndex )
getItem ( $itemType, $index ) : TControl
getSelectedItemDisplay ( $itemIndex )

Method Details

applyItemStyles() protected méthode

Item styles are applied in a hierarchical way. Style in higher hierarchy will inherit from styles in lower hierarchy. Starting from the lowest hierarchy, the item styles include item's own style, {@link getItemStyle ItemStyle}, {@link getAlternatingItemStyle AlternatingItemStyle}, {@link getSelectedItemStyle SelectedItemStyle}, and {@link getEditItemStyle EditItemStyle}. Therefore, if background color is set as red in {@link getItemStyle ItemStyle}, {@link getEditItemStyle EditItemStyle} will also have red background color unless it is set to a different value explicitly.
protected applyItemStyles ( )

bubbleEvent() public méthode

If the event parameter is {@link TDataListCommandEventParameter} and the command name is a recognized one, which includes 'select', 'edit', 'delete', 'update', and 'cancel' (case-insensitive), then a corresponding command event is also raised (such as {@link onEditCommand OnEditCommand}). This method should only be used by control developers.
public bubbleEvent ( $sender, $param ) : boolean
Résultat boolean whether the event bubbling should stop here.

createEmptyContent() protected méthode

Creates empty datalist content.
protected createEmptyContent ( )

createItem() protected méthode

Creates a datalist item instance based on the item type and index.
protected createItem ( $itemIndex, $itemType ) : TControl
Résultat TControl created datalist item

generateItemStyle() public méthode

This method is required by {@link IRepeatInfoUser} interface.
public generateItemStyle ( $itemType, $index ) : TStyle
Résultat TStyle item style

getAlternatingItemRenderer() public méthode

Since: 3.1.0
public getAlternatingItemRenderer ( ) : string
Résultat string the class name for alternative datalist items. Defaults to empty, meaning not set.

getAlternatingItemStyle() public méthode

public getAlternatingItemStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for each alternating item

getAlternatingItemTemplate() public méthode

public getAlternatingItemTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the template for each alternating item

getCaption() public méthode

public getCaption ( ) : string
Résultat string caption of the table layout

getCaptionAlign() public méthode

public getCaptionAlign ( ) : TTableCaptionAlign
Résultat TTableCaptionAlign alignment of the caption of the table layout. Defaults to TTableCaptionAlign::NotSet.

getEditItem() public méthode

public getEditItem ( ) : TControl
Résultat TControl the edit item

getEditItemIndex() public méthode

public getEditItemIndex ( ) : integer
Résultat integer the zero-based index of the edit item in {@link getItems Items}. A value -1 means no item is in edit mode.

getEditItemRenderer() public méthode

Since: 3.1.0
public getEditItemRenderer ( ) : string
Résultat string the class name for the datalist item being editted. Defaults to empty, meaning not set.

getEditItemStyle() public méthode

public getEditItemStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for edit item

getEditItemTemplate() public méthode

public getEditItemTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the edit item template

getEmptyRenderer() public méthode

Since: 3.1.0
public getEmptyRenderer ( ) : string
Résultat string the class name for empty datalist item. Defaults to empty, meaning not set.

getEmptyTemplate() public méthode

public getEmptyTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the template applied when no data is bound to the datalist

getFooter() public méthode

public getFooter ( ) : TControl
Résultat TControl the footer item

getFooterRenderer() public méthode

Since: 3.1.0
public getFooterRenderer ( ) : string
Résultat string the class name for datalist footer item. Defaults to empty, meaning not set.

getFooterStyle() public méthode

public getFooterStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for footer

getFooterTemplate() public méthode

public getFooterTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the footer template

getHasFooter() public méthode

This method is required by {@link IRepeatInfoUser} interface.
public getHasFooter ( ) : boolean
Résultat boolean whether the datalist has footer

getHasHeader() public méthode

This method is required by {@link IRepeatInfoUser} interface.
public getHasHeader ( ) : boolean
Résultat boolean whether the datalist has header

getHasSeparators() public méthode

This method is required by {@link IRepeatInfoUser} interface.
public getHasSeparators ( ) : boolean
Résultat boolean always false.

getHeader() public méthode

public getHeader ( ) : TControl
Résultat TControl the header item

getHeaderRenderer() public méthode

Since: 3.1.0
public getHeaderRenderer ( ) : string
Résultat string the class name for datalist header item. Defaults to empty, meaning not set.

getHeaderStyle() public méthode

public getHeaderStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for header

getHeaderTemplate() public méthode

public getHeaderTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the header template

getItemCount() public méthode

public getItemCount ( ) : integer
Résultat integer number of items

getItemRenderer() public méthode

Since: 3.1.0
public getItemRenderer ( ) : string
Résultat string the class name for datalist items. Defaults to empty, meaning not set.

getItemStyle() public méthode

public getItemStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for item

getItemTemplate() public méthode

public getItemTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the template for item

getItems() public méthode

public getItems ( ) : TDataListItemCollection
Résultat TDataListItemCollection item list

getRepeatColumns() public méthode

public getRepeatColumns ( ) : integer
Résultat integer the number of columns that the list should be displayed with. Defaults to 0 meaning not set.

getRepeatDirection() public méthode

public getRepeatDirection ( ) : TRepeatDirection
Résultat TRepeatDirection the direction of traversing the list, defaults to TRepeatDirection::Vertical

getRepeatInfo() protected méthode

protected getRepeatInfo ( ) : TRepeatInfo
Résultat TRepeatInfo repeat information (primarily used by control developers)

getRepeatLayout() public méthode

public getRepeatLayout ( ) : TRepeatLayout
Résultat TRepeatLayout how the list should be displayed, using table or using line breaks. Defaults to TRepeatLayout::Table.

getSelectedDataKey() public méthode

public getSelectedDataKey ( ) : mixed
Résultat mixed the key value of the currently selected item

getSelectedItem() public méthode

public getSelectedItem ( ) : TControl
Résultat TControl the selected item, null if no item is selected.

getSelectedItemIndex() public méthode

public getSelectedItemIndex ( ) : integer
Résultat integer the zero-based index of the selected item in {@link getItems Items}. A value -1 means no item selected.

getSelectedItemRenderer() public méthode

Since: 3.1.0
public getSelectedItemRenderer ( ) : string
Résultat string the class name for the datalist item being selected. Defaults to empty, meaning not set.

getSelectedItemStyle() public méthode

public getSelectedItemStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for selected item

getSelectedItemTemplate() public méthode

public getSelectedItemTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the selected item template

getSeparatorRenderer() public méthode

Since: 3.1.0
public getSeparatorRenderer ( ) : string
Résultat string the class name for datalist item separators. Defaults to empty, meaning not set.

getSeparatorStyle() public méthode

public getSeparatorStyle ( ) : TTableItemStyle
Résultat TTableItemStyle the style for separator

getSeparatorTemplate() public méthode

public getSeparatorTemplate ( ) : Prado\Web\UI\ITemplate
Résultat Prado\Web\UI\ITemplate the separator template

getShowFooter() public méthode

public getShowFooter ( ) : boolean
Résultat boolean whether the footer should be shown. Defaults to true.

getShowHeader() public méthode

public getShowHeader ( ) : boolean
Résultat boolean whether the header should be shown. Defaults to true.

loadState() public méthode

This method is invoked right after control state is loaded.
public loadState ( )

onCancelCommand() public méthode

This method is invoked when a child control of the data list raises an OnCommand event and the command name is 'cancel' (case-insensitive).
public onCancelCommand ( $param )

onDeleteCommand() public méthode

This method is invoked when a child control of the data list raises an OnCommand event and the command name is 'delete' (case-insensitive).
public onDeleteCommand ( $param )

onEditCommand() public méthode

This method is invoked when a child control of the data list raises an OnCommand event and the command name is 'edit' (case-insensitive).
public onEditCommand ( $param )

onItemCommand() public méthode

This method is invoked when a child control of the data list raises an OnCommand event.
public onItemCommand ( $param )

onItemCreated() public méthode

This method is invoked after a data list item is created and instantiated with template, but before added to the page hierarchy. The datalist item control responsible for the event can be determined from the event parameter. If you override this method, be sure to call parent's implementation so that event handlers have chance to respond to the event.
public onItemCreated ( $param )

onItemDataBound() public méthode

This method is invoked right after an item is data bound. The datalist item control responsible for the event can be determined from the event parameter. If you override this method, be sure to call parent's implementation so that event handlers have chance to respond to the event.
public onItemDataBound ( $param )

onUpdateCommand() public méthode

This method is invoked when a child control of the data list raises an OnCommand event and the command name is 'update' (case-insensitive).
public onUpdateCommand ( $param )

performDataBinding() protected méthode

This method is invoked by dataBind(). You may override this function to provide your own way of data population.
protected performDataBinding ( $data )

render() public méthode

This method overrides the parent implementation.
public render ( $writer )

renderItem() public méthode

This method is required by {@link IRepeatInfoUser} interface.
public renderItem ( $writer, $repeatInfo, $itemType, $index )

reset() public méthode

Clears up all items in the data list.
public reset ( )

restoreItemsFromViewState() protected méthode

Creates data list items based on viewstate information.

saveState() public méthode

This method is invoked right before control state is to be saved.
public saveState ( )

setAlternatingItemRenderer() public méthode

If not empty, the class will be used to instantiate as alternative datalist items. This property takes precedence over {@link getAlternatingItemTemplate AlternatingItemTemplate}.
See also: setAlternatingItemTemplate
Since: 3.1.0
public setAlternatingItemRenderer ( $value )

setAlternatingItemTemplate() public méthode

public setAlternatingItemTemplate ( $value )

setCaption() public méthode

public setCaption ( $value )

setCaptionAlign() public méthode

public setCaptionAlign ( $value ) : TTableCaptionAlign
Résultat TTableCaptionAlign alignment of the caption of the table layout.

setEditItemIndex() public méthode

Previously editting item will change to normal item state. If the index is less than 0, any existing edit item will be cleared up.
public setEditItemIndex ( $value )

setEditItemRenderer() public méthode

If not empty, the class will be used to instantiate as the datalist item. This property takes precedence over {@link getEditItemTemplate EditItemTemplate}.
See also: setEditItemTemplate
Since: 3.1.0
public setEditItemRenderer ( $value )

setEditItemTemplate() public méthode

public setEditItemTemplate ( $value )

setEmptyRenderer() public méthode

The empty renderer is created as the child of the datalist if data bound to the datalist is empty. This property takes precedence over {@link getEmptyTemplate EmptyTemplate}.
See also: setEmptyTemplate
Since: 3.1.0
public setEmptyRenderer ( $value )

setEmptyTemplate() public méthode

public setEmptyTemplate ( $value )

setFooterRenderer() public méthode

If not empty, the class will be used to instantiate as datalist footer item. This property takes precedence over {@link getFooterTemplate FooterTemplate}.
See also: setFooterTemplate
Since: 3.1.0
public setFooterRenderer ( $value )

setFooterTemplate() public méthode

public setFooterTemplate ( $value )

setHeaderRenderer() public méthode

If not empty, the class will be used to instantiate as datalist header item. This property takes precedence over {@link getHeaderTemplate HeaderTemplate}.
See also: setHeaderTemplate
Since: 3.1.0
public setHeaderRenderer ( $value )

setHeaderTemplate() public méthode

public setHeaderTemplate ( $value )

setItemRenderer() public méthode

If not empty, the class will be used to instantiate as datalist items. This property takes precedence over {@link getItemTemplate ItemTemplate}.
See also: setItemTemplate
Since: 3.1.0
public setItemRenderer ( $value )

setItemTemplate() public méthode

public setItemTemplate ( $value )

setRepeatColumns() public méthode

public setRepeatColumns ( $value )

setRepeatDirection() public méthode

public setRepeatDirection ( $value )

setRepeatLayout() public méthode

public setRepeatLayout ( $value )

setSelectedItemIndex() public méthode

Previously selected item will be un-selected. If the item to be selected is already in edit mode, it will remain in edit mode. If the index is less than 0, any existing selection will be cleared up.
public setSelectedItemIndex ( $value )

setSelectedItemRenderer() public méthode

If not empty, the class will be used to instantiate as the datalist item. This property takes precedence over {@link getSelectedItemTemplate SelectedItemTemplate}.
See also: setSelectedItemTemplate
Since: 3.1.0
public setSelectedItemRenderer ( $value )

setSelectedItemTemplate() public méthode

public setSelectedItemTemplate ( $value )

setSeparatorRenderer() public méthode

If not empty, the class will be used to instantiate as datalist item separators. This property takes precedence over {@link getSeparatorTemplate SeparatorTemplate}.
See also: setSeparatorTemplate
Since: 3.1.0
public setSeparatorRenderer ( $value )

setSeparatorTemplate() public méthode

public setSeparatorTemplate ( $value )

setShowFooter() public méthode

public setShowFooter ( $value )

setShowHeader() public méthode

public setShowHeader ( $value )