new LaxActionBuilder()
- Source:
The object based on builder pattern to call Aura action. It is instantiated to be used by Lax as a prototype of actual actions. This type of action does not use Promise approach and subsequently can be called as storable.
Methods
enqueue() → {void}
- Source:
Enqueues the action. The function do not return the object itself and should be called at the end of the builder chain.
Returns:
- Type
- void
setBackground() → {LaxActionBuilder}
- Source:
Marks the action as a Background
Returns:
- Type
- LaxActionBuilder
setCatch(callback) → {LaxActionBuilder}
- Source:
Assigns the failure callback on Aura action. This function called when the error occurs.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
Returns:
- Type
- LaxActionBuilder
setFinally(callback) → {LaxActionBuilder}
- Source:
Assigns the finally callback on Aura action. This function called after success or failure callback. It doesn't depend on the result of an action.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
Returns:
- Type
- LaxActionBuilder
setParams(params) → {LaxActionBuilder}
- Source:
Sets parameters for the action.
Parameters:
Name | Type | Description |
---|---|---|
params |
Object |
Returns:
- Type
- LaxActionBuilder
setStorable() → {LaxActionBuilder}
- Source:
Marks the action as a Storable
Returns:
- Type
- LaxActionBuilder
setThen(callback) → {LaxActionBuilder}
- Source:
Assign the success callback on Aura action
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
Returns:
- Type
- LaxActionBuilder