Members
slidesData :Array
A list of slides that are displayed in the custom slider. Each slide has the following attributes: image,
heading and description.
Type:
- Array
- Source:
Example
slideData = [
{
"image": "some image link",
"heading": "Slide 1",
"description": "Some description for slide 1"
},
{
"image": "another image link",
"heading": "Slide 2",
"description": "Some description for slide 2"
}
]
Methods
addRowActions(columns, showView, showEdit, showDelete)
Appends row action columns to the columns array.
Parameters:
| Name | Type | Description |
|---|---|---|
columns |
Array | The columns array to modify |
showView |
boolean | Whether to show the View action |
showEdit |
boolean | Whether to show the Edit action |
showDelete |
boolean | Whether to show the Delete action |
- Source:
buildDatatableProperties(component) → {Object}
Builds the properties object passed to the datatable extension component.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
- Source:
Returns:
The datatable properties
- Type
- Object
getSelectedRecords(component, event)
Handles row selection events from lightning-datatable.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
event |
Event | The rowselection event |
- Source:
navigateToRecord(component, recordId, actionName)
Navigates to a record page using the NavigationMixin.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance (must extend NavigationMixin) |
recordId |
string | The record Id to navigate to |
actionName |
string | The navigation action ('view' or 'edit') |
- Source:
showToast(component, title, message, variant)
Dispatches a toast event on the given component.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
title |
string | Toast title |
message |
string | Toast message |
variant |
string | Toast variant (success, error, warning, info) |
- Source: