Limit¶
Overview¶
This widget allows you to filter one or more widgets by limiting the number of results shown. Two options can be use along :
First: limit the set of result, starting by the first element
Last: limit the set of result, starting by the last element
Interactions¶
Apply limit to another widget¶
Supporting widget list :
List of configuration files¶
Filename |
Short description |
Format |
Link to documentation |
---|---|---|---|
dashboard.view#LimitWidget |
Defines the LimitWidget widget global settings |
json |
Configuration¶
type |
object |
|||||
properties |
||||||
|
Background color |
|||||
oneOf |
type |
string |
||||
pattern |
^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$ |
|||||
type |
object |
|||||
properties |
||||||
|
type |
string |
||||
|
type |
string |
||||
pattern |
^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$ |
|||||
additionalProperties |
False |
|||||
type |
object |
|||||
properties |
||||||
|
oneOf |
type |
string |
|||
pattern |
^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$ |
|||||
type |
object |
|||||
properties |
||||||
|
type |
string |
||||
|
type |
string |
||||
pattern |
^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$ |
|||||
additionalProperties |
False |
|||||
|
oneOf |
type |
string |
|||
pattern |
^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$ |
|||||
type |
object |
|||||
properties |
||||||
|
type |
string |
||||
|
type |
string |
||||
pattern |
^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$ |
|||||
additionalProperties |
False |
|||||
additionalProperties |
False |
|||||
|
Default limit value. |
|||||
type |
integer |
|||||
minimum |
0 |
|||||
default |
100 |
|||||
|
Default limit from value. Get x first values or x last values |
|||||
type |
string |
|||||
enum |
First, Last |
|||||
default |
Last |
|||||
|
Disable limit from selector |
|||||
type |
boolean |
|||||
default |
False |
|||||
additionalProperties |
False |
Settings¶
These settings can be applied to a Limit widget.
Setting |
Usage |
Type |
Default value |
---|---|---|---|
backgroundColor |
Background color of the widget |
string |
|
defaultLimit |
Default limit number of results |
integer |
100 |
defaultLimitFrom |
Default limit from value, start by First or by Last result |
First or Last |
Last |
disableLimitFrom |
Disable limit from selector |
True or False |
False |
Events¶
listen¶
The Limit widget can process these events :
connect: Called when connected to a widget, sends current values
restore: Restores defaults values