RemoveWebClass Method


PLB Web Only, 10.6

 

The RemoveWebClass method removes one or more HTML classes from a web object that is implemented as a visible HTML object.

 

[label]

{object}.RemoveWebClass

[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.
{ClassString}
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 removed from the HTML <div> enclosing the web object.

    0x2

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

Example of RemoveWebClass method for a web object:

 

Panelx PANEL

 

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

         ...

.

.Change <div> class for a PANEL Web object

.

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

 

 

See Also: AddWebClass, Objects

 



PL/B Language Reference GetWebStyle Method SetWebStyle Method