Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(react-scheduler): add the scheduler Appointment Tooltip guide (#…
- Loading branch information
1 parent
f0040fd
commit 35c4642
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/dx-react-scheduler/docs/guides/appointment-tooltip.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# React Scheduler - Appointment Tooltip | ||
|
||
An appointment tooltip displays information about the appointment and contains buttons that manage the appointment. | ||
|
||
## Related Plugins | ||
|
||
The following plugin is required: | ||
|
||
- [AppointmentTooltip](../reference/appointment-tooltip.md) - displays the appointment tooltip | ||
|
||
## Basic Usage | ||
|
||
Import the plugin listed above. A user can click on an appointment to show its tooltip. | ||
|
||
### Uncontrolled Mode | ||
|
||
The following demo shows how to use the appointment tooltip in uncontrolled mode: | ||
|
||
.embedded-demo({ "path": "scheduler-tooltip/uncontrolled", "showThemeSelector": true }) | ||
|
||
### Controlled Mode | ||
|
||
In controlled mode, the state of `AppointmentTooltip`s should be controlled externally. To control their visibility, pass the `visible` property and `onVisibilityChange` event to the plugin. To manage the displayed data, pass the [appointmentMeta](../reference/appointment-tooltip.md#appointmentmeta) property and `onAppointmentMetaChange` event. | ||
|
||
.embedded-demo({ "path": "scheduler-tooltip/controlled", "showThemeSelector": true }) | ||
|
||
### Customize the Appearance | ||
|
||
To customize the tooltip's appearance, specify the `xxxComponent` properties (`xxx` is the name of the element you want to customize). For example, the `headerComponent` and `contentComponent` properties are used to customize the tooltip's header and content, as shown in the code below. Refer to the [AppointmentTooltip API reference page](../reference/appointment-tooltip.md) for a list of all `xxxComponent` properties. | ||
|
||
.embedded-demo({ "path": "scheduler-tooltip/custom", "showThemeSelector": true }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters