Class AppBar
Inheritance
Namespace: Syncfusion.EJ2.Navigations
Assembly: Syncfusion.EJ2.dll
Syntax
public class AppBar : EJTagHelper
Constructors
AppBar()
Declaration
public AppBar()
Properties
ColorMode
Specifies the color mode that defines the color of the AppBar component. The possible values for this property are as follows:
Light
: Specifies the AppBar in light color.
Dark
: Specifies the AppBar in dark color.
Primary
: Specifies the AppBar in a primary color.
Inherit
: Inherit color from parent for AppBar. AppBar background and colors are inherited from its parent element.
Declaration
public AppBarColor ColorMode { get; set; }
Property Value
Type | Description |
---|---|
AppBarColor | The default value is AppBarColor.Light |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Created
Triggers after the AppBar component is created.
Declaration
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Accepts single/multiple CSS classes (separated by a space) to be used for AppBar customization.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Destroyed
Triggers when the AppBar component is destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
HtmlAttributes
Accepts HTML attributes/custom attributes that will be applied to the AppBar element.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
IsSticky
Defines whether the AppBar position is fixed or not while scrolling the page.
When set to true
, the AppBar will be sticky while scrolling.
Declaration
public bool IsSticky { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Mode
Specifies the mode of the AppBar that defines the AppBar height. The possible values for this property are as follows:
Regular
: Specifies default height for the AppBar.
Prominent
: Specifies longer height for the AppBar to show the longer titles and images, or to provide a stronger presence.
Dense
: Specifies compressed (short) height for the AppBar to accommodate all the app bar content in a denser layout.
Declaration
public AppBarMode Mode { get; set; }
Property Value
Type | Description |
---|---|
AppBarMode | The default value is AppBarMode.Regular |
Position
Specifies the position of the AppBar. The possible values for this property are as follows:
Top
: Position the AppBar at the top.
Bottom
: Position the AppBar at the bottom.
Declaration
public AppBarPosition Position { get; set; }
Property Value
Type | Description |
---|---|
AppBarPosition | The default value is AppBarPosition.Top |