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

../../../_images/osp-limit-example.png

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

Link

Configuration

type

object

properties

  • backgroundColor

Background color

oneOf

type

string

pattern

^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$

type

object

properties

  • reference

type

string

  • fallback

type

string

pattern

^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$

additionalProperties

False

type

object

properties

  • dark

oneOf

type

string

pattern

^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$

type

object

properties

  • reference

type

string

  • fallback

type

string

pattern

^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$

additionalProperties

False

  • light

oneOf

type

string

pattern

^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$

type

object

properties

  • reference

type

string

  • fallback

type

string

pattern

^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$

additionalProperties

False

additionalProperties

False

  • defaultLimit

Default limit value.

type

integer

minimum

0

default

100

  • defaultLimitFrom

Default limit from value. Get x first values or x last values

type

string

enum

First, Last

default

Last

  • disableLimitFrom

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