tab (cellium v0.1.0)

View Source

Tab widget module for rendering tabbed containers.

This module provides a container widget that displays a tab bar integrated into the top border of the container with a "popped-up" cap for each tab.

Summary

Functions

Creates a new tab widget with default properties.

Creates a new tab widget with specified dimensions.

Renders the integrated tab bar with caps and the content area.

Functions

new(Id)

-spec new(term()) -> map().

Creates a new tab widget with default properties.

new(Id, Width, Height)

-spec new(term(), non_neg_integer(), non_neg_integer()) -> map().

Creates a new tab widget with specified dimensions.

render(Widget, Buffer)

-spec render(map(), map()) -> map().

Renders the integrated tab bar with caps and the content area.