Search results

AppBarComponent

Represents the Essential JS 2 Angular AppBar Component.

<ejs-appbar></ejs-appbar>

Properties

colorMode

AppBarColor

Specifies the color mode that defines the color of the AppBar component. The possible values for this property are as follows:

  • Light
  • Dark
  • Primary
  • Inherit

Defaults to ‘Light’

cssClass

string

Accepts single/multiple CSS classes (separated by a space) to be used for AppBar customization.

Defaults to null

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads.

Defaults to false

enableRtl

boolean

Enable or disable rendering component in right to left direction.

Defaults to false

htmlAttributes

Record

Accepts HTML attributes/custom attributes that will be applied to the AppBar element.

Defaults to null

isSticky

boolean

Defines whether the AppBar position is fixed or not while scrolling the page. When set to true, the AppBar will be sticky while scrolling.

Defaults to false

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

Defaults to

mode

AppBarMode

Specifies the mode of the AppBar that defines the AppBar height. The possible values for this property are as follows:

  • Regular
  • Prominent
  • Dense

Defaults to ‘Regular’

position

AppBarPosition

Specifies the position of the AppBar. The possible values for this property are as follows:

  • Top
  • Bottom

Defaults to ‘Top’

Methods

destroy

Removes the control from the DOM and also removes all its related events.

Returns void

Events

created

EmitType<Event>

Triggers after the AppBar component is created.

destroyed

EmitType<Event>

Triggers when the AppBar component is destroyed.