-
Notifications
You must be signed in to change notification settings - Fork 2
Style
Crutiatix edited this page Apr 29, 2017
·
3 revisions
Sometimes you'll want to create greater number of similar elements. For this purpose TICuare uses a style system. This allows you to apply general styles to new elements, removing the need to write unnecessary attributes on each ticuare.element(). Element-specific attributes will not be overwritten by styles.
-
- same as in element
-
-
- define new style
- arguments:
- [table] = table containing attributes
- return:
- [object] = self element
-
- apply specified style on element
- arguments:
- [object] = style
- return:
- [object] = self element
-
Modifications:
- v0.7.0
- renamed newStyle to Style