Members
(static) fullSet
All needed properties for each config option.
- Source:
(static) types
All allowed types for config options.
- Source:
Methods
add(s)
add another option to this template
This:
Parameters:
Name | Type | Description |
---|---|---|
s |
object | config option with all needed properties. |
- Source:
check(key, value)
check that a key,value combo is ok
This method will throw an exception if it finds anything wrong.
This:
Parameters:
Name | Type | Description |
---|---|---|
key |
string | key to check. |
value |
anything | value to check. |
- Source:
getDefaultValue(key) → {anything}
return the default value for a key
This:
Parameters:
Name | Type | Description |
---|---|---|
key |
string | the key to fetch the value for. |
- Source:
Returns:
the default value for the given key.
- Type
- anything
getHTML() → {string}
show HTML that lists all config options for the current template
This:
- Source:
Returns:
HTML representation of this config template.
- Type
- string
hasKey(key) → {boolean}
return whether the template has a key
This:
Parameters:
Name | Type | Description |
---|---|---|
key |
string | the key to check. |
- Source:
Returns:
is the key part of this config template.
- Type
- boolean
initialize() → {ConfigTmpl}
create a new instance of this class.
This:
- Source:
Returns:
a new instance of this class.
- Type
- ConfigTmpl