Skip to content
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.

  • Attributes:

  • Methods:

    • ticuare.Style
      • define new style
      • arguments:
        • [table] = table containing attributes
      • return:
        • [object] = self element
    • element:style
      • apply specified style on element
      • arguments:
        • [object] = style
      • return:
        • [object] = self element

Modifications:

  • v0.7.0
    • renamed newStyle to Style
Clone this wiki locally