9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function CSSType(type: string): ClassDecorator;

Defined in: ui/core/view/index.d.ts:37

Specifies the type name for the instances of this View class, that is used when matching CSS type selectors.

Usage:

@CSSType("Button")
class Button extends View {
}

Internally the decorator set Button.prototype.cssType = "Button".

Parameters

ParameterTypeDescription
typestringThe type name, e. g. "Button", "Label", etc.

Returns

ClassDecorator

Previous
confirm