Skip to content

Toaster

import { Toaster } from 'c/boltage';
export default class myLwc extends LightningElement {
doSomething() {
Toaster.success('Hello, world !');
}
}
NameTypeDescription
messagestringArray of javascript objects received from any sources
paramsToastParamsDescription of how you want your options to look like by defining the props label, value and description
export default class myLwc extends LightningElement {
@wire(apexMethod)
apexResults;
get comboboxOptions() {
return this.apexResults?.data
? comboboxify(this.apexResults.data, {
value: ['Relation__c.Field__c'],
label: ['Relation__c.Field__c']
})
: [];
}
}