Tab

open class Tab(label: String? = null, icon: String? = null, activeIcon: String? = null, badge: String? = null, active: Boolean? = null, className: String? = null, init: Tab.() -> Unit? = null)

A tab component.

Parameters

label

the label of the tab item

icon

the name of the icon

activeIcon

the name of the icon when the tab is active

badge

display a notification badge on top of the tab

active

whether this tab is active on start

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(label: String? = null, icon: String? = null, activeIcon: String? = null, badge: String? = null, active: Boolean? = null, className: String? = null, init: Tab.() -> Unit? = null)

Creates a tab component.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether this tab is active on start.

Link copied to clipboard

The name of the icon when the tab is active.

Link copied to clipboard

Display a notification badge on top of the tab.

Link copied to clipboard
var icon: String?

The name of the icon.

Link copied to clipboard

The label of the tab item.

Functions

Link copied to clipboard
open fun add(child: <Error class: unknown class>)
Link copied to clipboard
open fun afterCreate(node: <Error class: unknown class>)
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
fun Tab.navigator(animation: NavAnimation? = null, swipeable: Boolean? = null, forceSwipeable: Boolean? = null, className: String? = null, init: Navigator.() -> Unit? = null): Navigator

DSL builder extension function.

Link copied to clipboard
fun Tab.page(className: String? = null, init: Page.() -> Unit? = null): Page

DSL builder extension function.

Link copied to clipboard
open fun render(): <Error class: unknown class>