Loading tutorials
ShowToastEvent. This chapter covers two properties of that event: variant controls how the toast looks and what it means, and mode controls how long it stays an4 min readShowToastEvent with a title, message, and variant. It also assumes you know basic LWC structure, @api, and dispatchEvent.4 min read@api properties work. You should be able to read4 min readlightning/navigation, and how to apply NavigationMixin to a component class. Lat4 min readNavigationMixin.Navigate: standard__recordPage and standard__objectPage. It assumes you know the basic LWC file structure, @api properties, and how a PageReference is shaped. Earlier chapters covered applying the mixin and4 min readstandard__namedPage, standard__webPage, standard__app, and standard__navItemPage. They all work through the same call, this[NavigationMixin.Navigate](pageReference). Only the type a3 min readNavigationMixin.Navigate moves the user to a page right now. NavigationMixin.GenerateUrl instead gives you the URL of a page, so you can put it in a link. This chapter covers when to choose each one, how the Promise works, and the mistakes that make generated links fail.4 min readstate property of a page reference. It assumes you can already call this[NavigationMixin.Navigate] with a PageReference and read CurrentPageReference. You'll use state for three things: opening a specific list view, pre-filling a New record form, and passing your ow4 min readNavigationMixin.Navigate with a page reference and that you know how @wire binds a function or property to a data source. Earlier chapters covered Navigate, GenerateUrl, and the state property. Here you read the same kind of object back.4 min readLightningModal, a base class from the lightning/modal module. This chapter covers what the base class gives y4 min readLightningModal has a three-part layout. This chapter covers what each part does, which attributes control it, and the mistakes that break the layout. It assumes you can write a basic LWC (HTML template, JavaScript class, metadata file), use @api properties and dispatchEvent, a5 min readopen() method of a LightningModal component: which options it accepts, how to pass values into the modal's @api properties, and what the returned Promise gives you. It assumes you know basic LWC structure, @api decorators, and async/await. It also assumes you have4 min readLightningModal ends and how the component that opened it receives a value back. It assumes you can build a basic LWC, use @api properties, and write async/await code. It also assumes you have already seen how a modal template is built and how open() is called.3 min readLightningModal, open it with open(), and return a value with this.close(). You should also be comfortable with CustomEvent and arrow functions.4 min readasync/await and the custom LightningModal pattern from earlier chapters, where a class extends LightningModal, is opened with a static open() call, and returns a val3 min read