Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Use the following directives to modify the widgets. The directives can be added to any tag in the Template editing field on the Widget form.
Directives | Type | Description | Example |
---|---|---|---|
simple-class | String | Create a class containing custom CSS style parameters, to easily apply it to |
...
your widgets. Define the class in the CSS field of the Widget form. | To display a phrase with custom settings, do the following:
|
...
CSS:
|
...
| |
simple-if |
...
String | This directive |
...
allows you to hide or show the widget, or |
...
part of it. If the specified condition is not satisfied, |
...
the elements are removed from the Document Object Model (DOM). | The following example enables a block of a widget if a set condition is met |
...
. Template:
|
...
|
...
|
...
Client script:
| |||
simple-show | String | This directive |
...
allows you to hide or show the widget, or part of it. If the specified condition is not |
...
satisfied, the |
...
hidden elements remain in the Document Object Model (DOM). | In this example, the directive defines the current day of the week and displays a corresponding phrase “It's Friday!” in the widget. Template:
| ||
simple-style | String | Use this directive |
...
to customize the |
...
tag layout |
...
: background color, font settings, pointer, etc. | In this example, you can see, how to customize the text style. Template:
|