Function Namespace hoe
creates new DOM elements
Defined in: hoe.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
hoe(tag, param[])
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> <constant> |
build functions to create hoe objcts on namespace
by default add most common tags to window object
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
hoe.inherit(base_type, constructor)
create new type by inheriting from other types
|
| <static> |
hoe.init(namespace, tags)
define factory functions to create DOM elements
|
| <static> |
hoe.jquery_plugin(param, param, param)
Exposed to any jQuery object as 'hoe' plugin.
|
| <static> |
hoe.partial(tag, param[])
Similar to `hoe()` but instead of returning an element returns
a function that creates new elements including the parameters
passed to partial
|
Function Namespace Detail
hoe(tag, param[])
- Parameters:
- {String} tag
- name of tag to be created
- param[] Optional
- can take any number of params, hoe.jquery_plugin
- Returns:
- {jQuery}
Field Detail
<static> <constant>
hoe.init_default_tags
build functions to create hoe objcts on namespace
by default add most common tags to window object
Method Detail
<static>
{Type}
hoe.inherit(base_type, constructor)
create new type by inheriting from other types
- Parameters:
- {Object} base_type
- Type to inherit from
- {Function} constructor Optional
- over-write constructor from base_type
- Returns:
- {Type} new Type/constructor
<static>
hoe.init(namespace, tags)
define factory functions to create DOM elements
- Parameters:
- {Object} namespace Optional, Default: window
- namespace where functions will be created
- {String[]} tags Optional, Default: hoe.init_default_tags
- functions will be created for given tags
<static>
{jQuery}
hoe.jquery_plugin(param, param, param)
Exposed to any jQuery object as 'hoe' plugin.
Guess which jQuery method should be applied to object,
operation depends on param type.
- Parameters:
- {String} param Optional
- append as text to element content
- {Object} param Optional
- set as html element attributes
- {DOMElement[]|jQuery[]} param Optional
- append param into element content
- Returns:
- {jQuery}
<static>
hoe.partial(tag, param[])
Similar to `hoe()` but instead of returning an element returns
a function that creates new elements including the parameters
passed to partial
- Parameters:
- {String} tag
- name of tag to be created
- param[] Optional
- can take any number of params, hoe.jquery_plugin
- Returns:
- function