EventData
Attributes
Block | None
The component object that triggered the event. Can be used to distinguish multiple components bound to the same listener.
Example
SelectData
.select() event.
Attributes
Block | None
The component object that triggered the event.
Any
The index of the selected item. Is a tuple if the component is two dimensional or selection is a range.
Any
The value of the selected item.
Any
The value of the entire row that the selected item belongs to, as a 1-D list. Only implemented for the Dataframe component, returns None for other components.
Any
The value of the entire column that the selected item belongs to, as a 1-D list. Only implemented for the Dataframe component, returns None for other components.
bool
True if the item was selected, False if deselected.
Example
LikeData
.like() event.
Attributes
Block | None
The component object that triggered the event.
int | tuple[int, int]
The index of the liked/disliked item. Is a tuple if the component is two dimensional.
Any
The value of the liked/disliked item.
bool | str
True if the item was liked, False if disliked, or string value if any other feedback.
Example
KeyUpData
.key_up() event.
Attributes
Block | None
The component object that triggered the event.
str
The key that was pressed.
str
The displayed value in the input textbox after the key was pressed. This may be different than the value attribute of the component itself.
DeletedFileData
.delete() event.
Attributes
Block | None
The component object that triggered the event.
FileData
The file that was deleted, as a FileData object.
RetryData
.retry() event.
Attributes
Block | None
The component object that triggered the event.
int | tuple[int, int]
The index of the user message that should be retried.
Any
The value of the user message that should be retried.
UndoData
.undo() event.
Attributes
Block | None
The component object that triggered the event.
int | tuple[int, int]
The index of the user message that should be undone.
Any
The value of the user message that should be undone.
EditData
.edit() event.
Attributes
Block | None
The component object that triggered the event.
int | tuple[int, int]
The index of the message that was edited.
Any
The previous content of the message that was edited.
Any
The new content of the message that was edited.
DownloadData
.download() event.
Attributes
Block | None
The component object that triggered the event.
FileData
The file that was downloaded, as a FileData object.
CopyData
.copy() event.
Attributes
Block | None
The component object that triggered the event.
Any
The value that was copied.