Classes and constructor functions for tab and accordion widgets

Accordion(...)

Tab(...)

Stack(...)

Arguments

...

Arguments passed to the superclass constructor

Functions

  • Accordion(): The constructor function for accordion widgets.

  • Tab(): The construction function for accordion widgets.

  • Stack(): The construction function for accordion widgets.

Public fields

_titles

A dictionary of strings, for internal use only

titles

A dictionary of strings, exposed since ipywidgets 8.

selected_index

An integer, the field currently selected.

Methods

Inherited methods


Method validate_index()

Validate the index, i.e. check whether it is within range.

Usage

SelectionContainerClass$validate_index(index)

Arguments

index

An integer number.


Method set_title()

Set the title of one of the elements.

Usage

SelectionContainerClass$set_title(index, title)

Arguments

index

The index number of the element to be changed.

title

A character string, the intended title.


Method get_title()

Get the title of one of the elements.

Usage

SelectionContainerClass$get_title(index)

Arguments

index

The index number of the element to be enquired.


Method new()

An initializer function

Usage

SelectionContainerClass$new(children = list(), ...)

Arguments

children

A list of widgets

...

Other arguments, passed to the superclass method


Method clone()

The objects of this class are cloneable with this method.

Usage

SelectionContainerClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Public fields

_model_name

Name of the Javascript model in the frontend.

_view_name

Name of the Javascript view in the frontend.

Public fields

_model_name

Name of the Javascript model in the frontend.

_view_name

Name of the Javascript view in the frontend.

Public fields

_model_name

Name of the Javascript model in the frontend.

_view_name

Name of the Javascript view in the frontend.

required_version

Minimum required ipywidgets version in which the current widget class is supported.