ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class FabBuilder

    Inheritance
    System.Object
    ControlBuilder
    FabBuilder
    Inherited Members
    ControlBuilder.Context
    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 FabBuilder : ControlBuilder

    Constructors

    FabBuilder()

    Declaration
    public FabBuilder()

    FabBuilder(Fab)

    Declaration
    public FabBuilder(Fab model)
    Parameters
    Type Name Description
    Fab model

    Fields

    model

    Declaration
    public Fab model
    Field Value
    Type Description
    Fab

    Properties

    HtmlAttr

    Declaration
    public IDictionary<string, object> HtmlAttr { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    ID

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    Output

    Declaration
    public override TextWriter Output { get; set; }
    Property Value
    Type Description
    System.IO.TextWriter
    Overrides
    ControlBuilder.Output

    Methods

    Content(String)

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

    Declaration
    public FabBuilder Content(string content)
    Parameters
    Type Name Description
    System.String content
    Returns
    Type Description
    FabBuilder

    ContentTemplate(Action<Object>)

    Declaration
    public FabBuilder ContentTemplate(Action<object> template)
    Parameters
    Type Name Description
    System.Action<System.Object> template
    Returns
    Type Description
    FabBuilder

    ContentTemplate(Func<Object, Object>)

    Declaration
    public FabBuilder ContentTemplate(Func<object, object> template)
    Parameters
    Type Name Description
    System.Func<System.Object, System.Object> template
    Returns
    Type Description
    FabBuilder

    Created(String)

    Triggers once the component rendering is completed.

    Declaration
    public FabBuilder Created(string created)
    Parameters
    Type Name Description
    System.String created
    Returns
    Type Description
    FabBuilder

    CssClass(String)

    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
    public FabBuilder CssClass(string cssClass)
    Parameters
    Type Name Description
    System.String cssClass
    Returns
    Type Description
    FabBuilder

    Disabled(Boolean)

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

    Declaration
    public FabBuilder Disabled(bool disabled = true)
    Parameters
    Type Name Description
    System.Boolean disabled
    Returns
    Type Description
    FabBuilder

    EnableHtmlSanitizer(Boolean)

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

    Declaration
    public FabBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
    Parameters
    Type Name Description
    System.Boolean enableHtmlSanitizer
    Returns
    Type Description
    FabBuilder

    EnablePersistence(Boolean)

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

    Declaration
    public FabBuilder EnablePersistence(bool enablePersistence = true)
    Parameters
    Type Name Description
    System.Boolean enablePersistence
    Returns
    Type Description
    FabBuilder

    EnableRtl(Boolean)

    Enable or disable rendering component in right to left direction.

    Declaration
    public FabBuilder EnableRtl(bool enableRtl = true)
    Parameters
    Type Name Description
    System.Boolean enableRtl
    Returns
    Type Description
    FabBuilder

    HtmlAttributes(Object)

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

    Declaration
    public FabBuilder HtmlAttributes(object htmlAttributes)
    Parameters
    Type Name Description
    System.Object htmlAttributes
    Returns
    Type Description
    FabBuilder

    IconCss(String)

    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
    public FabBuilder IconCss(string iconCss)
    Parameters
    Type Name Description
    System.String iconCss
    Returns
    Type Description
    FabBuilder

    IconPosition(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
    public FabBuilder IconPosition(IconPosition iconPosition)
    Parameters
    Type Name Description
    IconPosition iconPosition
    Returns
    Type Description
    FabBuilder

    IsPrimary(Boolean)

    Defines whether to apply primary style for FAB.

    Declaration
    public FabBuilder IsPrimary(bool isPrimary = true)
    Parameters
    Type Name Description
    System.Boolean isPrimary
    Returns
    Type Description
    FabBuilder

    IsToggle(Boolean)

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

    Declaration
    public FabBuilder IsToggle(bool isToggle = true)
    Parameters
    Type Name Description
    System.Boolean isToggle
    Returns
    Type Description
    FabBuilder

    Position(FabPosition)

    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
    public FabBuilder Position(FabPosition position)
    Parameters
    Type Name Description
    FabPosition position
    Returns
    Type Description
    FabBuilder

    Render()

    Declaration
    public HtmlString Render()
    Returns
    Type Description
    System.Web.HtmlString

    Target(String)

    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
    public FabBuilder Target(string target)
    Parameters
    Type Name Description
    System.String target
    Returns
    Type Description
    FabBuilder

    Visible(Boolean)

    Defines whether the fab is visible or hidden.

    Declaration
    public FabBuilder Visible(bool visible = true)
    Parameters
    Type Name Description
    System.Boolean visible
    Returns
    Type Description
    FabBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved