mixin S2.UI.Mixin.Configurable


A mixin for hassle-free blending of default options with user-defined options.

Expects default options to be defined in a DEFAULT_OPTIONS property on the class itself.


Instance methods

  • setOptions #

    S2.UI.Mixin.Configurable#setOptions(options) -> Object
    • options (Object) – A set of user-defined options that should override the defaults.

    Sets options on the class. Can be called multiple times; will copy any options defined in options onto an existing this.options property (or will define that property if it does not exist).