All pages
Powered by GitBook
1 of 1

Loading...

StyleSheet

Adds CSS styling to controls.

The Wisej.NET StyleSheet extender adds a CssClass property to eligible controls when added from the Toolbox. Define styles in the component's StyleSheetSource property.

As of Wisej.NET 2, all controls include CssClass and CssStyle properties by default, eliminating the need for this extender.

For a full list of properties, methods and events see the

Features

CssClass

The CssClass property enables controls to use CSS classes defined in the StyleSheet component's StyleSheetSource property.

StyleSheet Source:

Apply the CSS class to a control:

Result:

Advanced

JavaScript Widget

Item
Description

Class name

"wisej.web.extender.StyleSheet"

Source code

https://github.com/iceteagroup/wisej-js

API documentation.
Button with myClass CSS applied
this.styleSheet1.SetCssClass(this.button1, "myClass");
.myClass {
    background-color: red;
}