psBtnCssClass - cWebColumnButton
Determines the CSS class used to style static buttons in this column
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
{ WebProperty=Client }
Property String psBtnCssClass
| Access Type | Syntax |
|---|---|
| Read Access: | WebGet psBtnCssClass to StringVariable |
| Write Access: | WebSet psBtnCssClass to StringVariable/Value |
Description
This property only applies when the column's pbDynamic property is set to False to create one static button per row. To set the CSS class for dynamic buttons, use the AddButton message.
When psBtnCssClass is not set (the default), then the button 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.
Sample
This example demonstrates how to apply a CSS class called "classA" to the column buttons.
Set psBtnCssClass to "classA"
Sample
This example demonstrates how to apply two CSS classes ("classA" & "classB") to the column buttons.
Set psBtnCssClass to "classA classB"
See Also
OnDefineRowCSSClass | Styling Web Applications
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.