Class ClickEventArgs<T>
A class that contains event arguments for click action.
Inherited Members
Namespace: Syncfusion.Blazor.Lists
Assembly: Syncfusion.Blazor.dll
Syntax
public class ClickEventArgs<T>
Type Parameters
| Name | Description |
|---|---|
| T | TValue of the ListView component. |
Constructors
ClickEventArgs()
Declaration
public ClickEventArgs()
Properties
Cancel
Gets or sets a value indicating whether to prevent the current click action on the list item.
Declaration
[JsonPropertyName("cancel")]
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Index
Gets the index position of clicked element.
Declaration
[JsonPropertyName("index")]
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| int | Accepts an integer value. |
IsChecked
Gets or sets a value that indicates whether the element is checked or not.
Declaration
[JsonPropertyName("isChecked")]
public bool IsChecked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
IsInteracted
Gets or sets whether the event is triggered by user interaction.
Declaration
[JsonPropertyName("isInteracted")]
public bool IsInteracted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
ItemData
Gets or sets the data source of the clicked item.
Declaration
[JsonPropertyName("itemData")]
public T ItemData { get; set; }
Property Value
| Type | Description |
|---|---|
| T | The data of the clicked item. The default value is |
Level
Gets or sets the nesting level of the list items.
Declaration
public int Level { get; set; }
Property Value
| Type | Description |
|---|---|
| int | Accepts an integer value. |
Name
Gets the event name.
Declaration
[Obsolete("This property is obsolete from 2023 volume 4 release", false)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Accepts the string value. |
Text
Gets or sets the selected item text.
Declaration
[JsonPropertyName("text")]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Accepts the string value. |