Constructor
new EventCard(props) → {React.Component}
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | Props for EventCard including event details and onDelete callback. |
- Source:
Returns:
A card component displaying event details.
- Type
- React.Component
Methods
(static) handleChange(prop) → {function}
Handles changes to the event fields in the dialog.
Parameters:
Name | Type | Description |
---|---|---|
prop |
string | Property name of the event to update. |
- Source:
Returns:
A function that takes an event object and updates the event state.
- Type
- function
(static) handleClickOpen(e)
Opens the dialog to edit event details.
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | Event object to prevent event bubbling. |
- Source:
(static) handleClickSaveChanges()
Handles the click event on the Save Changes button.
- Source:
(static) handleClose()
Closes the edit event dialog.
- Source:
(static) handleDialogKeyDown(event)
Handles key down event on the dialog, specifically the Escape key.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | The key down event object. |
- Source:
(static) updateEvent() → {Promise.<Boolean>}
Updates the event details in the database.
- Source:
Returns:
Promise indicating the success of the update operation.
- Type
- Promise.<Boolean>