Search results

AppBar

The AppBar displays the information and actions related to the current application screen. It is used to show branding, screen titles, navigation, and actions. Support to inherit colors from AppBar provided to Button, DropDownButton, Menu and TextBox. Set CssClass property with e-inherit CSS class to inherit the background and color from AppBar.

Properties

colorMode

string

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 @default ‘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

string

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

  • Regular
  • Prominent
  • Dense @default ‘Regular’

position

string

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

  • Top
  • Bottom @default ‘Top’

Methods

addEventListener

Adds the handler to the given event listener.

Parameter Type Description
eventName string A String that specifies the name of the event
handler Function Specifies the call to run when the event occurs.

Returns void

appendTo

Appends the control within the given HTML element

Parameter Type Description
selector (optional) string | HTMLElement Target element where control needs to be appended

Returns void

dataBind

When invoked, applies the pending property changes immediately to the component.

Returns void

destroy

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

Returns void

getLocalData

Returns the persistence data for component

Returns any

getRootElement

Returns the route element of the component

Returns HTMLElement

refresh

Applies all the pending property changes and render the component again.

Returns void

removeEventListener

Removes the handler from the given event listener.

Parameter Type Description
eventName string A String that specifies the name of the event to remove
handler Function Specifies the function to remove

Returns void

Inject

Dynamically injects the required modules to the component.

Parameter Type Description
moduleList Function[] ?

Returns void

Events

created

EmitType<Event>

Triggers after the AppBar component is created.

destroyed

EmitType<Event>

Triggers when the AppBar component is destroyed.