Class GallerySelectEventArgs
Provides information about the Selecting event callback.
Inherited Members
Namespace: Syncfusion.Blazor.Ribbon
Assembly: Syncfusion.Blazor.dll
Syntax
public class GallerySelectEventArgs : BaseEventArgs, ICancellableEvent
Remarks
This event is triggered before a gallery item is selected, allowing customization or cancellation of the selection process.
Constructors
GallerySelectEventArgs()
Declaration
public GallerySelectEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the selection action should be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
By setting this property to true
, you can cancel the selection process, which is useful when validation or pre-selection conditions are not met.
CurrentItem
Gets the currently selected gallery item.
Declaration
public GalleryItem CurrentItem { get; }
Property Value
Type | Description |
---|---|
GalleryItem | An instance of GalleryItem representing the currently selected gallery item. |
Remarks
Use this property to access the data of the item being selected, enabling you to make decisions based on its attributes during the selection event.
IsInteracted
Gets or sets a value indicating whether the event is triggered via user interaction or programmatically.
Declaration
public bool IsInteracted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Helps to determine the origin of the gallery selection, useful for distinguishing between user interaction and code-driven selection.
PreviousItem
Gets the previously selected gallery item.
Declaration
public GalleryItem PreviousItem { get; }
Property Value
Type | Description |
---|---|
GalleryItem | An instance of GalleryItem representing the previously selected gallery item. |
Remarks
This property allows tracking of item transitions by providing details of the item that is previously selected before the current action.