Skip to content

SiHeaderAccountItemComponent documentation

selector
button[si-header-account-item]

Adds an account item to the header. Should be located inside .header-actions .

Input Properties

NameTypeDefaultDescription
badge
(null | number | boolean)Adds a badge to the header item. If type - =number, the number will be shown and automatically trimmed if \​>99 - =true, an empty red dot will be shown
imageUrl
stringURL to an image which should be shown instead of the initials.
initials
stringInitials of the account. If not provided, they will be calculated.
name
Required
stringName of the account.

Attributes and Methods

NameTypeDefaultDescription
ngOnChanges(...)
(changes: SimpleChanges) => voidA callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

Parameters
ngOnInit()
() => voidA callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

Types Documentation

No types to document for items on this page.


Except where otherwise noted, content on this site is licensed under MIT License.