#
Deselect Component Option
In
#
Usage
Set the selected
flag to false
on a row in a select
component.
#
Syntax
webclient.deselectComponentOption(payload: Object): Promise
#
Arguments
#
Sample Javascript
import IpscapeWebClient from '@ipscape/web-client';
// Create a new instance of the IpSCAPE Web Client
const webClient = new IpscapeWebClient();
webclient.deselectComponentOption({ name: 'people', recordId: '0060I00000gr8I4QAI' }).then((eventData) => {
if (eventData.success)
console.log('component: deselected', eventData);
else
console.error('component: error', eventData.message);
});
#
Response
This method returns a promise. The resolved response is returned in an object and contains the following:
Result
Example
success
Response
Returns this object if the API method call was invoked successfully, false otherwise.
{
success: boolean;
result: {
message: string;
timestamp: number;
}
}