@combeenation/custom-code-sdk
    Preparing search index...

    Class Button

    Index

    Constructors

    • Parameters

      • id: string

      Returns Button

    Properties

    id: string

    Methods

    • Parameters

      • callback: OnClickCallback

      Returns CallbackUnsubscribeOption

    • See CustomControl.onRendered for detailed information on what you can do with this listener and what it is not meant for.

      Also see OnRenderedCallback for important information regarding the element which is passed to the callback.

      Parameters

      Returns CallbackUnsubscribeOption

    • Set arbitrary properties of the button control.
      Behavior is the same as when setting the respective property in the configurator editor.

      Some properties are not allowed to be set here because they have a dedicated method which should be used instead.
      E.g. setting visible is not allowed because ButtonV1.setVisible should be used instead.

      Type Parameters

      • T extends
            | "text"
            | "width"
            | "height"
            | "minWidth"
            | "minHeight"
            | "maxWidth"
            | "maxHeight"
            | "margin"
            | "padding"
            | "cssClasses"
            | "backgroundNormal"
            | "backgroundHover"
            | "backgroundPressed"
            | "borderRadius"
            | "font"
            | "color"
            | "enabled"
            | "tooltipText"
            | "tooltipPos"
            | "alignmentBlock"

      Parameters

      • propertyName: T
      • value: SetButtonPropertyValue[T]

      Returns void

    • Parameters

      • text: string

      Returns void

    • Parameters

      • visible: boolean

      Returns Promise<void>