UIController(optionsopt)

Class UIController

new UIController(optionsopt)

Creates an instance of UIController.

Parameters:
Name Type Attributes Description
options Object <optional>

options

Properties
Name Type Attributes Description
rootElement jQuery <optional>

root element

tagName string <optional>

tag name

className string <optional>

class name

Members

static $el :Object

UI jQuery element

static className :string

ui controller class name

static tagName :string

tag name

Methods

destroy()

destroy

off(type, fn)

unbind event handler

Parameters:
Name Type Description
type string

event name and selector

fn function

handler function

on(aType, aFn)

Parameters:
Name Type Description
aType string | object

event name and selector string

aFn function

event handler

remove()

remove

trigger(…args)

trigger event

Parameters:
Name Type Attributes Description
args object <repeatable>

event name & extra params