Class: StyleResource

Kekule.Widget. StyleResource

new StyleResource()

A base class to associate with CSS styles. User can set the instance of this class to widget to set special styles.
Properties:
Name Type Description
name String Name of resource. Can not be modified after created.
cssClassName String CSS class name associated with this resource. When apply to widget, this name will be added to HTML element. Note, user can use space separated string to add multiple classes, e.g. 'Class1 Class2 Class3'.
Source:

Extends

  • ObjectEx

Methods

linkTo(target)

Apply style to widget or HTML element. Descendants can override this method to do more complex job.
Parameters:
Name Type Description
target Variant A widget or HTML element.
Source:

unlinkFrom(target)

Remove style from widget or HTML element. Descendants can override this method to do more complex job.
Parameters:
Name Type Description
target Variant A widget or HTML element.
Source:

Kekule.Widget. StyleResource

new StyleResource()

Source:

Methods

linkTo(target)

Apply style to widget or HTML element. Descendants can override this method to do more complex job.
Parameters:
Name Type Description
target Variant A widget or HTML element.
Source:

unlinkFrom(target)

Remove style from widget or HTML element. Descendants can override this method to do more complex job.
Parameters:
Name Type Description
target Variant A widget or HTML element.
Source: