Skip to content

Commit 7d2c56c

Browse files
committed
docs: update fileselect events article
1 parent 344c6eb commit 7d2c56c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/fileselect/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Property | Type | Description
4141

4242
The `OnSelect` fires when one or more files have been selected. The selection of files is achieved either through the **Select Files** button or by dropping the files anywhere in the component.
4343

44-
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo), which contains a list of `FileInfo` objects that allow the processing of the files.
44+
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo). The FileSelectEventArgs event argument contains the properties `Files` (a collection of `FileSelectFileInfo` members) and `IsCancelled`. When `IsCancelled` is set to `true`, it cancels the event and the respective user action.
4545

4646
See the [example below](#example).
4747

4848
## OnRemove
4949

5050
The `OnRemove` fires when a file has been removed from the list of selected files either by clicking the **x** icon or by pressing the `Del` key.
5151

52-
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo). As the FileSelect component allows deleting one item at a time, the collection contains only one `FileSelectFileInfo` object (the deleted one).
52+
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo) that has the `Files` and `IsCancelled` properties. Unlike the `OnSelect` event, in which the `Files` collection may contain multiple `FileSelectFileInfo` objects, in the `OnRemove` event, it contains only one `FileSelectFileInfo` object (the deleted one).
5353

5454
## Example
5555

0 commit comments

Comments
 (0)