psCSSClass - cWebBaseUIObject

Determines the CSS class the object uses

Type: Property (Web Property)

Access: Read/Write

Data Type: String

Parameters: None

 { WebProperty=Client }
 Property String psCSSClass

Web Property Read Access: WebGet psCSSClass to StringVariable
Web Property Write Access: WebSet psCSSClass to StringVariable/Value

Read Access: Get psCSSClass to StringVariable
Write Access: Set psCSSClass to StringVariable/Value


When psCssClass is not set (the default), then the control style is determined by the current theme CSS as determined by the psTheme property.

You can augment, or override the default style of the column buttons by creating a new CSS class in the special application.css file, then setting this property to the name of that class.


This sample shows how to set the CSS class of a class or object to a single CSS class.

Set psCSSClass to "classA"


This sample shows how to set the CSS class of a class or object to multiple CSS classes.

Set psCSSClass to "classA classB"

See Extended CSS Class Styles for a list of framework class styles.

About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.
See Also

Styling Web Applications