ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Fab

    Show / Hide Table of Contents

    Class Fab

    Inheritance
    System.Object
    TagHelper
    EJTagHelper
    Fab
    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.Buttons
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class Fab : EJTagHelper

    Constructors

    Fab()

    Declaration
    public Fab()

    Properties

    Content

    Defines the text content of the Button element. {% codeBlock src='button/content/index.md' %}{% endcodeBlock %}

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

    The default value is ""

    ContentTemplate

    To get or set value for ContentTemplate.

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

    Created

    Triggers once the component rendering is completed.

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

    The default value is null

    CssClass

    Defines class/multiple classes separated by a space in the Button element. The Button types, styles, and size can be defined by using this. {% codeBlock src='button/cssClass/index.md' %}{% endcodeBlock %}

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

    The default value is ""

    Disabled

    Specifies a value that indicates whether the Button is disabled or not.

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

    The default value is false

    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 false

    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

    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

    IconCss

    Defines class/multiple classes separated by a space for the Button that is used to include an icon. Buttons can also include font icon and sprite image.

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

    The default value is ""

    IconPosition

    Positions the icon before/after the text content in the Button. The possible values are: Left: The icon will be positioned to the left of the text content. Right: The icon will be positioned to the right of the text content.

    Declaration
    [HtmlAttributeName("iconPosition")]
    public IconPosition IconPosition { get; set; }
    Property Value
    Type Description
    IconPosition

    The default value is IconPosition.Left

    IsPrimary

    Defines whether to apply primary style for FAB.

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

    The default value is true

    IsToggle

    Makes the Button toggle, when set to true. When you click it, the state changes from normal to active.

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

    The default value is false

    Position

    Defines the position of the FAB relative to target. The possible values are: TopLeft: Positions the FAB at the target's top left corner. TopCenter: Positions the FAB at the target's top left corner. TopRight: Positions the FAB at the target's top left corner. MiddleLeft: Positions the FAB at the target's top left corner. MiddleCenter: Positions the FAB at the target's top left corner. MiddleRight: Positions the FAB at the target's top left corner. BottomLeft: Positions the FAB at the target's top left corner. BottomCenter: Places the FAB on the bottom-center position of the target. BottomRight: Positions the FAB at the target's bottom right corner.

    Declaration
    [HtmlAttributeName("position")]
    public FabPosition Position { get; set; }
    Property Value
    Type Description
    FabPosition

    The default value is FabPosition.BottomRight

    Target

    Defines the selector that points to an element in which the FAB will be positioned. By default, FAB is positioned based on viewport of browser. The target element must have relative position, else FAB will get positioned based on the closest element which has relative position.

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

    The default value is ""

    Visible

    Defines whether the fab is visible or hidden.

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

    The default value is true

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