icon
icon(
iconCode): (constructor) =>void
This class-level decorator sets an icon for resource to be used in various parts of the UI, such as sidebars, navigation menus or resource listings. This decorator uses icon codes from Radix Icons but without spaces in camelCase.
Available icon names can be imported using the iconNames constant, which provides a complete list
of supported icon identifiers.
Sets {@link ResourceMeta.icon}.
Parameters
iconCode
string
Returns
(
constructor):void
Parameters
[constructor](function Object() { [native code] })
Constructor<unknown>
Returns
void
Example
@icon(iconNames.globe)
export class Student {