menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Toolbar - API Reference

    Show / Hide Table of Contents

    Class Toolbar

    Inheritance
    System.Object
    TagHelper
    EJTagHelper
    Toolbar
    Inherited Members
    EJTagHelper.GetList()
    EJTagHelper.GetSerializedProperties()
    EJTagHelper.GetScriptString()
    EJTagHelper.GetHtmlAttrString(IDictionary<String, Object>)
    EJTagHelper.TagName
    EJTagHelper.Id
    EJTagHelper.NameSpace
    EJTagHelper.ClassName
    EJTagHelper.IsFor
    EJTagHelper.IsChild
    EJTagHelper.IsComplex
    EJTagHelper.IsCollection
    EJTagHelper.ParentPropertyName
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.EJ2.Navigations
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class Toolbar : EJTagHelper

    Constructors

    Toolbar()

    Declaration
    public Toolbar()

    Properties

    AllowKeyboard

    When this property is set to true, it allows the keyboard interaction in toolbar.

    Declaration
    [HtmlAttributeName("allowKeyboard")]
    public bool AllowKeyboard { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    BeforeCreate

    The event will be fired before the control is rendered on a page.

    Declaration
    [HtmlAttributeName("beforeCreate")]
    public string BeforeCreate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Clicked

    The event will be fired on clicking the Toolbar elements.

    Declaration
    [HtmlAttributeName("clicked")]
    public string Clicked { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type Description
    MvcTemplate<System.Object>

    Created

    The event will be fired when the control is rendered.

    Declaration
    [HtmlAttributeName("created")]
    public string Created { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    CssClass

    Sets the CSS classes to root element of the Tab that helps to customize component styles.

    Declaration
    [HtmlAttributeName("cssClass")]
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Destroyed

    The event will be fired when the control gets destroyed.

    Declaration
    [HtmlAttributeName("destroyed")]
    public string Destroyed { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    EnableCollision

    Enable or disable the popup collision.

    Declaration
    [HtmlAttributeName("enableCollision")]
    public bool EnableCollision { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    EnableHtmlSanitizer

    Defines whether to allow the cross-scripting site or not.

    Declaration
    [HtmlAttributeName("enableHtmlSanitizer")]
    public bool EnableHtmlSanitizer { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    EnablePersistence

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

    Declaration
    [HtmlAttributeName("enablePersistence")]
    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
    [HtmlAttributeName("enableRtl")]
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Height

    Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.

    Declaration
    [HtmlAttributeName("height")]
    public string Height { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "auto"

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    [HtmlAttributeName("htmlAttributes")]
    public object HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Object

    Items

    An array of items that is used to configure Toolbar commands.

    Declaration
    [HtmlAttributeName("items")]
    public List<ToolbarItem> Items { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<ToolbarItem>

    The default value is null

    Locale

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

    Declaration
    [HtmlAttributeName("locale")]
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    OverflowMode

    Specifies the Toolbar display mode when Toolbar content exceeds the viewing area. The possible values for this property as follows

    • Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
    • Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the popup.
    • MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
    • Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons. If the popup content overflows the height of the page, the rest of the elements will be hidden.
    Declaration
    [HtmlAttributeName("overflowMode")]
    public OverflowMode OverflowMode { get; set; }
    Property Value
    Type Description
    OverflowMode

    The default value is OverflowMode.Scrollable

    ScrollStep

    Specifies the scrolling distance in scroller. The possible values for this property as follows Scrollable - All the elements are displayed in a single line with horizontal scrolling enabled. Popup - Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the popup. MultiRow - Displays the overflow toolbar items as an in-line of a toolbar. Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons. If the popup content overflows the height of the page, the rest of the elements will be hidden.

    Declaration
    [HtmlAttributeName("scrollStep")]
    public double ScrollStep { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is Double.NaN

    Width

    Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.

    Declaration
    [HtmlAttributeName("width")]
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "auto"

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved