Skip to contents

An R6 class and a constructor function for the creation of a player widget, which automatically increases its value-

Usage

Play(
  value = 0L,
  min = 0L,
  max = 100L,
  interval = 100L,
  step = 1L,
  show_repeat = TRUE,
  ...
)

Arguments

value

Integer, an initial value.

min

Integer, the minimum value.

max

Integer, the maximum value.

interval

Integer, the maximum value of the intrval .

step

The maximum value for the play control.

show_repeat

Logical, whether to show a repeat toggle button.

...

Further arguments, passed to the superclass constructor.

Functions

  • Play(): The player widget constructor function.

Public fields

_model_name

Name of the Javascript model in the frontend

_view_name

Name of the Javascript model view in the frontend

interval

An Integer traitlet, the time interval between between two steps.

step

An Integer traitlet, the step size.

_playing

A Boolean traitlet, indicates wether the player widget is running.

playing

A Boolean traitlet, indicates wether the player widget is running.

_repeat

A Boolean traitlet, indicates wether the the repeat toggle is on.

repeat

A Boolean traitlet, indicates wether the the repeat toggle is on.

show_repeat

A Boolean traitlet, determines whether to show a repeat toggle button.