For the complete documentation index, see llms.txt. This page is also available as Markdown.

Handle Image Selection on SharinPix Album (Developer-Oriented)

Overview

The updateAlbumSelection method lets you handle image selection within the SharinPix Album Component without requiring manual user interaction.

Method Signature

updateAlbumSelection(imageIds)

Parameters

Parameter
Type
Description

imageIds

Array of String

An array of SharinPix Public Image IDs to select.

Note: To clear all current selections, pass an empty array.

Setup

To use the updateAlbumSelection method, you must implement the SharinPix Album (LWC) as a child component within your own custom Lightning Web Component.

The recommended approach is to create an 'Album Wrapper' component that encapsulates the SharinPix Album (LWC).

Sample Album Wrapper component:

When updateAlbumSelection(this.samplePublicImageIds) is invoked, the images with the IDs that were passed in the array will be selected in the SharinPix Album (LWC).

Last updated

Was this helpful?