List Widget

Widgets using this class will show a simple list of items provided by a data provider.

Example

Configuration/Services.yaml:

services:

  dashboard.widget.testList:
    class: 'TYPO3\CMS\Dashboard\Widgets\ListWidget'
    arguments:
      $dataProvider: '@Vendor\Ext\Widgets\Provider\TestListWidgetDataProvider'
      $view: '@dashboard.views.widget'
    tags:
      - name: dashboard.widget
        identifier: 'testList'
        groupNames: 'general'
        title: 'List widget'
        description: 'Description of widget'
        iconIdentifier: 'content-widget-list'
        height: 'large'
        width: 'large'

Options

For this widget, there are no options available.

Dependencies

$dataProvider

This class should provide the items to show. This data provider needs to implement the ListDataProviderInterface.

$view

Used to render a Fluidtemplate. This should not be changed. The default is to use the pre configured Fluid StandaloneView for EXT:dashboard.

See Using Fluid for further information.