new Parameters(selector)
Parameters:
Name | Type | Description |
---|---|---|
selector |
string | selector to main wrapper for promotion block |
- Source:
Example
const params = parameters.parse('.Promotion');
Methods
banner(data) → {Object}
prepare data for banner and popup
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
final Data
- Type
- Object
flipClock(data) → {Object}
prepare data for flipClock
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
final Data
- Type
- Object
lang(data) → {Object}
prepare data for lang
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
data
- Type
- Object
other(data) → {Object}
prepare data for other
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
data
- Type
- Object
parse(selector) → {Object}
Parse and return all params
Parameters:
Name | Type | Description |
---|---|---|
selector |
string | jQuery selector |
- Source:
Returns:
- Type
- Object
Example
const params = new Parameters();
params.parse('.Promotion');
prepareData(data) → {Object}
prepare data for all initiators
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
data
- Type
- Object
time(data) → {Object}
prepare data for time
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
data
- Type
- Object
update(data) → {Object}
Parse and return all params
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | new data |
- Source:
Returns:
- Type
- Object
Example
const params = new Parameters();
params.update({});
validate(data) → {Object}
prepare data for time
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | row parameters |
- Source:
Returns:
validate data
- Type
- Object