Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions _docs-v6/date-display/day-cell-render-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ For customizing the day cells in [Timeline view](timeline-view), use the [Slot R
When the above hooks are specified as a function in the form `function(arg)`, the `arg` is an object with the following properties:

- `date` - Date object
- `dayNumberText`
- `isPast`
- `isFuture`
- `isToday`
- `isOther`
- `dayNumberText` - The display text of the day number shown in the cell (e.g., `"9"` for the 9th).
- `isPast` - `true` if the date is before today. Useful for dimming or disabling past dates.
- `isFuture` - `true` if the date is after today. Useful for highlighting upcoming dates.
- `isToday` - `true` if the date is today. Commonly used to apply a special highlight to the current day.
- `isOther` - `true` if the date belongs to a different month than the one currently displayed (e.g., overflow days filling the calendar grid).
- `resource` - if the date cell lives under a specific resource in [vertical resource view](vertical-resource-view), this value will be the [Resource Object](resource-object)
- `el` - the `<td>` element. only available in `dayCellDidMount` and `dayCellWillUnmount`