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
deleteCurrentRecord(component, recordId, refreshFn)
Deletes a single record and refreshes data.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
recordId |
string | The record Id to delete |
refreshFn |
function | Function to refresh data after deletion |
- Source:
deleteSelectedRecords(component, selectedRecords, refreshFn)
Deletes multiple selected records and refreshes data.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
selectedRecords |
Array | The records to delete |
refreshFn |
function | Function to refresh data after deletion |
- Source:
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:
handleRowAction(component, event, refreshFn)
Handles row action events from lightning-datatable.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
event |
Event | The rowaction event |
refreshFn |
function | Function to refresh data after delete |
- Source:
handleSave(component, draftValues, refreshFn)
Handles inline edit save by updating all draft records.
Parameters:
| Name | Type | Description |
|---|---|---|
component |
LightningElement | The component instance |
draftValues |
Array | The draft values from the save event |
refreshFn |
function | Function to refresh data after save |
- 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: