List Widget
Widgets using this class will show a simple list of items provided by a data provider.
A list widget showing the items returned by its data provider.
Example
services:
dashboard.widget.testList:
class: 'TYPO3\CMS\Dashboard\Widgets\ListWidget'
arguments:
$dataProvider: '@Vendor\Ext\Widgets\Provider\TestListWidgetDataProvider'
$options:
refreshAvailable: true
tags:
- name: dashboard.widget
identifier: 'testList'
groupNames: 'general'
title: 'List widget'
description: 'Description of widget'
iconIdentifier: 'content-widget-list'
height: 'large'
width: 'large'
Options
-
refreshAvailable -
- Type
- boolean
- Default
false
Boolean value, either
falseortrue.Provides a refresh button to backend users to refresh the widget. If the option is omitted
falseis assumed.
-
- Type
- integer
- Default
10
Number of items shown at once. Only used if the data provider implements the
Paginated.List Data Provider Interface Backend users can change the value in the widget settings, unless the option is set in the widget registration. In that case the value is fixed.
Dependencies
-
- Type
\TYPO3\orCMS\ Dashboard\ Widgets\ List Data Provider Interface \TYPO3\CMS\ Dashboard\ Widgets\ Paginated List Data Provider Interface
This class should provide the items to show. This data provider needs to implement the
List.Data Provider Interface If the data provider implements the
Paginatedinstead, the widget renders a paginator in its footer and requests the items of the current page from the returned paginator.List Data Provider Interface