MdTabs

open class MdTabs(autoActivate: Boolean = false, activeTabIndex: Int = -1, className: String? = null, init: MdTabs.() -> Unit? = null) : MdListWidget<MdTab>

Tabs organize groups of related content that are at the same level of hierarchy.

See https://material-web.dev/components/tabs/

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(autoActivate: Boolean = false, activeTabIndex: Int = -1, className: String? = null, init: MdTabs.() -> Unit? = null)

Properties

Link copied to clipboard

Current active tab.

Link copied to clipboard
var activeTabIndex: <Error class: unknown class>

Index of the current active tab.

Link copied to clipboard
var autoActivate: <Error class: unknown class>

Whether or not to automatically select a tab when it is focused.

Link copied to clipboard
open var parent: <Error class: unknown class>?
Link copied to clipboard

The tabs of this tab bar.

Functions

Link copied to clipboard
open override fun add(item: MdTab)

Adds given item to the current widget.

open override fun add(position: Int, item: MdTab)

Adds given item to the current widget at the given position.

Link copied to clipboard
open override fun addAll(items: List<MdTab>)

Adds a list of items to the current widget.

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
open fun dispose()
Link copied to clipboard
open override fun disposeAll()

Removes all items from the current widget and disposes them.

Link copied to clipboard
fun MdTabs.primaryTab(text: String, inlineIcon: Boolean = false, active: Boolean = false, className: String? = null, init: MdPrimaryTab.() -> Unit? = null): <Error class: unknown class>
Link copied to clipboard
open override fun remove(item: MdTab)

Removes given item from the current widget.

Link copied to clipboard
open override fun removeAll()

Removes all items from the current widget.

Link copied to clipboard
open override fun removeAt(position: Int)

Removes the item from the current widget at the given position.

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

Scrolls the toolbar, if overflowing, to the active tab.

fun scrollToTab(tab: MdTab): <Error class: unknown class><Unit>

Scrolls the toolbar, if overflowing, to the tab.

fun scrollToTab(index: Int): <Error class: unknown class><Unit>

Scrolls the toolbar, if overflowing, to the tab at index.

Link copied to clipboard
fun MdTabs.secondaryTab(text: String, active: Boolean = false, className: String? = null, init: MdSecondaryTab.() -> Unit? = null): <Error class: unknown class>