API reference for SfSwitchComponent

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


selector: sf-switch description: Represents a switch/toggle button with ON and OFF states

Implements

  • OnInit

Constructors

Properties

cssClassList: string

Css class list

disabled: boolean = false

Whether the switch is disabled

id: string

Sets the id attribute of the switch button

isLoading: boolean = false

Whether loading is visible

isOn: boolean = false

Whether the switch is ON

look: string

Css modifier for the switch

offText: string

Sets the OFF text message

onText: string

Sets the ON text message

selectionChange: EventEmitter<boolean> = ...

Selection changed emitter. Returns the current selection state (true of false)

showText: boolean = true

Whether to show the OFF/ON text

Methods

  • Generates the css modifiers of the wrapper

    Returns string

  • Gets the ON/OFF icon name

    Returns string

  • Generates the css modifiers of the button

    Returns string

  • Gets the ON/OFF text

    Returns string

  • Returns void

  • Handles selection changed

    Parameters

    • event: Event

    Returns void

Generated using TypeDoc