API reference for SfButtonComponent

import {SfButtonModule} from "@progress/sitefinity-component-framework";


selector: sf-button

Implements

  • OnInit
  • OnChanges

Constructors

Properties

ariaLabel: string

Whether Aria-label attribute

buttonClassName: string

The button css class list

disabled: any

Whether the button is disabled

dropdown: boolean = false

Whether the button has a dropdown

dropdownButton: any

Gets the dropdown button

dropdownInheritsParentWidth: boolean = false

Should the dropdown inherit the button's width

dropped: boolean = false

Whether the dropdown of the dropdown button is visible

feedback: boolean

Whether the button is in feedback mode

icon: string

Sets the icon font-awesome icon name without the fa- prefix For buttons that are not dropdown buttons, content is not visible when icon is visible

iconClassName: string

The icon css class list

iconLook: string = "size-xs"

Sets the css modifiers of the icon

iconTitle: string

Sets the title attribute of the icon

Sets the image data

loader: string

Use to make loader in the button. Empty by default. To add loader to the button set loader="color" for default buttons and loader="transparent" for action and delete buttons

look: string

Sets the look of the button, empty by default Can be large, small, action, delete, feedback, or any other string Can have more that one look separated by space. For example, look="action large"

moveInViewportTolerance: number = 10

How far from the viewport bottom should the dropdown of the dropdown button appear

onClick: EventEmitter<any> = ...

Emits when the button is clicked

onDropdownBtnClick: EventEmitter<DropdownClickEvent> = ...

Emits when the dropdown button is clicked

onMouseDown: EventEmitter<any> = ...

Emits on mouse down

onMouseEnter: EventEmitter<any> = ...

Emits on mouse enter

title: string

The title attribute of the button

type: string = "button"

Sets the type of a button, button by default Can be button, submit or reset

Methods

  • Handles click of button

    Parameters

    • event: Event

    Returns void

  • Handles mouse down

    Parameters

    • event: Event

    Returns void

  • Handles mouse enter

    Parameters

    • event: Event

    Returns void

  • Returns void

  • Returns void

  • Toggles dropdown visibility

    Returns void

Generated using TypeDoc