Skip to content

Toaster

Import

import { Toaster } from 'c/bolt';

Usage

export default class myLwc extends LightningElement {
doSomething() {
Toaster.success('Hello, world !');
}
}

Methods

success(message, params) : void

error(message, params) : void

warning(message, params) : void

info(message, params) : void

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

Example

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']
})
: [];
}
}