Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / Tab

Class: Tab

Defined in: admin/src/table/Tab.ts:13

Constructors

Constructor

new Tab(key): Tab

Defined in: admin/src/table/Tab.ts:22

Parameters

key

string

Returns

Tab

Methods

make()

static make(key): Tab

Defined in: admin/src/table/Tab.ts:26

Parameters

key

string

Returns

Tab


label()

label(label): this

Defined in: admin/src/table/Tab.ts:30

Parameters

label

string

Returns

this


icon()

icon(name): this

Defined in: admin/src/table/Tab.ts:35

Parameters

name

string

Returns

this


badge()

badge(value?): this

Defined in: admin/src/table/Tab.ts:44

Show a count badge. With no argument the panel counts matching records; pass a value to show a fixed badge instead.

Parameters

value?

string | number

Returns

this


badgeColor()

badgeColor(tone): this

Defined in: admin/src/table/Tab.ts:50

Parameters

tone

BadgeTone

Returns

this


modifyQuery()

modifyQuery(fn): this

Defined in: admin/src/table/Tab.ts:56

Scope the table query for this tab.

Parameters

fn

QueryModifier

Returns

this


getLabel()

getLabel(): string

Defined in: admin/src/table/Tab.ts:61

Returns

string