new Coupons()
- Source:
Properties:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object |
Properties
|
Members
defaultFilter :object
- Source:
Type:
- object
filters :object
- Source:
Type:
- object
initialApiCall :boolean
- Source:
Type:
- boolean
isSettled :boolean
- Description:
Is settlet coupons selected
- Source:
Is settlet coupons selected
Type:
- boolean
state :Array
- Description:
Filtering fields settings
- Source:
Filtering fields settings
Type:
- Array
Methods
getCoupons(payload) → {void}
- Description:
Get coupons API call
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
payload |
object | Filter data |
Returns:
- Type
- void
loadMore() → {void}
- Description:
Load more coupons
- Source:
Returns:
- Type
- void
render() → {view}
- Description:
Render
- Source:
Returns:
- Type
- view
sortColumn(field, direction) → {void}
- Description:
Sort table by columns
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
field |
string | sort field |
direction |
string | direction of sort ASC or DESC |
Returns:
- Type
- void