Skip to main content
Version: 1.0.4

IPlannerProps

@spartanfx/react v1.0.4


@spartanfx/react / IPlannerProps

Interface: IPlannerProps

Props for the Planner component.

Remarks

Raw items are converted into planner items based on the provided schema. View state changes may be captured via the provided callbacks.

Properties

PropertyTypeDescription
allowAddNew?booleanWhether adding new items is enabled
allowDragDrop?booleanWhether drag-and-drop is enabled.
allowPeriodCountSelection?booleanWhether to show the period count selector in the UI.
allowViewByWeek?booleanWhether viewing by week is permitted.
allowViewByYear?booleanWhether viewing by year is permitted.
appearance?stringAppearance mode (light/dark) - AppearanceMode enum. Defaults to light.
className?stringCustom CSS class on the container.
colorIndex?numberIndex for selecting a predefined color palette.
colorMapping?ColorMappingOptional custom color mapping.
containerHeight?numberHeight of the planner container.
containerWidth?numberWidth of the planner container.
currentMonth?numberCurrent month in view.
currentWeek?numberCurrent week in view.
currentYear?numberCurrent year in view.
customInnerElementType?FunctionComponent<IPlannerComponentProps>Override for rendering the inner item content.
elementClassName?stringCSS class applied to each item element.
grouped?booleanWhether items should be displayed in grouped mode.
groupIconMapping?GroupIconMappingOptional custom group icon mapping per group.
itemsRecord<string, unknown>[]Raw item list before schema transformation.
legendProps?Partial<ILegendProps>Additional props passed to the legend component.
loading?booleanUpdate this prop to show the embbedded loading animation of the Planner
maxPeriodCount?PeriodCountMax period count to show in the selector in the UI.
onChangeCurrentMonth?(month) => voidMonth change callback.
onChangeCurrentWeek?(week) => voidWeek change callback.
onChangeCurrentYear?(year) => voidYear change callback.
onChangePeriodCount?(count) => voidPeriod count change callback.
onChangeViewBy?(viewBy) => voidView mode change callback.
onDragClass?stringCSS class applied during drag operations.
onPlannerDatesChanged?(newStartDate, newEndDate) => voidCallback for planner dates changed
onRenderGroup?(groupStr) => ElementCustom renderer to render the group element.
optionsIPlannerOptionsGlobal planner configuration and event hooks.
periodCount?PeriodCountNumber of periods to display (1 or 2).
schemaIPlannerSchemaMapping definition from raw data to planner item.
showLegend?booleanWhether the color legend should be displayed.
style?anyInline styles for the container.
viewBy?ViewByCurrent view mode.