class

Egui::Tabs

Inherits Egui::Widget < Reference < Object

Constants

ROOT_CLASS = "tabs"

Element classes for StyleSheet tweaks from app code: ctx.stylesheet.rule(Tabs::TAB_CLASS, …)

SCROLL_SALT = 31333_u64
TAB_CLASS = "tabs.tab"

Constructors

Instance methods

closable?
Source
closed

The tab whose close button was clicked this frame — its index, nil when nothing closed. The app removes the tab from its own state (and fixes the selection).

Source
layout
Source
multiline?

:multiline wraps full rows instead of scrolling one row (:carousel) — see the class doc.

Source
selected
Source
style_class

CSS-like class this widget styles under in the global StyleSheet (nil = not registered yet). Widgets adopt the class system gradually; see Button and containers/sidebar.cr for the reference wiring (base + state overlays).

Source
style_properties

The tabs root keys #ui reads (the strip itself). The per-card keys of tabs.tab are declared by TabPart — the strip records its own meta under the (non-interacting) scroll id so the Class tab knows these props too.

Source
tab_title

The selected tab's title.

Source
ui(ui : Ui) : Response
Source

Nested types