List Widget
Widgets using this class will show a simple list of items provided by a 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'
Copied!
Options
refreshAvailable
-
refresh
Available -
- Type
- boolean
- Default
false
Boolean value, either
false
ortrue
.Provides a refresh button to backend users to refresh the widget. If the option is omitted
false
is assumed.
Dependencies
$dataProvider
-
This class should provide the items to show. This data provider needs to implement the
Number
.With Icon Data Provider Interface