EventData
Attributes
The component object that triggered the event. Can be used to distinguish multiple components bound to the same listener.
Example
SelectData
.select() event.
Attributes
The component object that triggered the event.
The index of the selected item. Is a tuple if the component is two dimensional or selection is a range.
The value of the selected item.
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.
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.
True if the item was selected, False if deselected.
Example
LikeData
.like() event.
Attributes
The component object that triggered the event.
The index of the liked/disliked item. Is a tuple if the component is two dimensional.
The value of the liked/disliked item.
True if the item was liked, False if disliked, or string value if any other feedback.
Example
KeyUpData
.key_up() event.
Attributes
The component object that triggered the event.
The key that was pressed.
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
The component object that triggered the event.
The file that was deleted, as a FileData object.
RetryData
.retry() event.
Attributes
The component object that triggered the event.
The index of the user message that should be retried.
The value of the user message that should be retried.
UndoData
.undo() event.
Attributes
The component object that triggered the event.
The index of the user message that should be undone.
The value of the user message that should be undone.
EditData
.edit() event.
Attributes
The component object that triggered the event.
The index of the message that was edited.
The previous content of the message that was edited.
The new content of the message that was edited.
DownloadData
.download() event.
Attributes
The component object that triggered the event.
The file that was downloaded, as a FileData object.
CopyData
.copy() event.
Attributes
The component object that triggered the event.
The value that was copied.