BUTTONSTATE Property


 PLBCMP GUI Only, 10.5

 

The BUTTONSTATE property uses a combination of Bootstrap 5 'Contextual classes' and button state types to invoke a variety of appearances for a web button object. The property uses the following format:

 

BUTTONSTATE={value}

Note the following:

  1. BUTTONSTATE may be used in CREATE, GETPROP, or SETPROP statements of a BUTTON web object.

  2. The BUTTONSTATE property is only used when a BUTTON object has been created as a web object using the WebView mode.

  3. {value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
     

  4. Value

    Keyword

    The button state is ...

    0

    $BTNSTATE_DEFAULT

    default.

    1

    $BTNSTATE_OUTLINE

    outline.

    2

    $BTNSTATE_SPIN

    spinner.

    3

    $BTNSTATE_SPINGROW

    grow spinner.

     

  5. For more information about Bootstrap 5 buttons and spinners, see the following links:

  6.  

    https://getbootstrap.com/docs/5.0/components/buttons/

    https://getbootstrap.com/docs/5.0/components/spinners/

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference BUTTONS Property BUTTONTYPE Property