AddWebClass Method


PLB Web Only, 10.6

 

The AddWebClass method adds one or more HTML classes to a web object that is implemented as a visible HTML object. This method uses the following format:

 

[label]

{object}.AddWebClass

[GIVING {return}] USING [*Classes}=]{classString}[:

 

 

[*Flags=]{flags}]

Where:

{label}
Optional. A Program Execution Label.
{object}
Required. A web object type that is being accessed.
{return}
Optional. A Numeric Variable that receives the pass or fail result for the execution of the method.
{Classes}
Required. A Character String Variable or Literal that specifies the one or more class names.
{Flags}
Optional. A Numeric Variable or Literal that invokes special behaviors for the method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. This method dynamically changes the HTML classes. Each class in the class string must be separated by a space.

  2. The EOS and OVER flags are always cleared.

  3. The ZERO flag is always set to TRUE with a return value of zero.

  4. The optional {flags} bit mask values changed the executions behavior of the SetWebStyle method as follows:

  5.  

    Value

    Meaning

    0x1

    This bit value causes the CSS style to be applied to the HTML <div> enclosing the web object.

    0x2

    This bit value causes the CSS style to be applied to the HTML <label> in the web {object}.

Example of AddWebClass method for a web object:

 

Panelx PANEL

 

         CREATE Panelx... //Generated as HTML <div>

         ...

.

 Change <div> class for a PANEL Web object

.

         Panelx.SetWebStyle USING *CLASSES="bg-gradient opacity-25" 

 

 

See Also: RemoveWebClass, Objects

 



PL/B Language Reference DisableJqEvent Method