@teamco/ischeduler-core
v2.0.17
Published
Headless core for iScheduler — types, utils, handlers, i18n, provider
Maintainers
Readme
@teamco/ischeduler-core
Headless core for iScheduler — provides types, utilities, handlers, i18n, and the SchedulerProvider.
This package is intended to be used alongside one of the UI adapter packages:
Features
SchedulerProvider/useSchedulerContext— Centralized state, CRUD callbacks, and permissions management.- Types — Standardized
IScheduler,TSchedulerDuration,TSchedulerRepeat, andTSchedulerRange. - Handlers — Logic for duration value changes, start date formatting, and generating recurrence text (weekly/monthly/yearly).
- i18n — 90+ translation keys with template variable support, fully customizable via the provider.
Installation
npm install @teamco/ischeduler-core
npm install react react-dom dayjsUsage
The core package provides the context that wraps your scheduling components:
import { SchedulerProvider, ESchedulerPrefix } from '@teamco/ischeduler-core';
function App() {
return (
<SchedulerProvider
schedulers={/* your schedulers state */}
limit={10} // Optional: maximum number of schedulers allowed per type
onCreate={/* create callback */}
onUpdate={/* update callback */}
onDelete={/* delete callback */}
permissions={{ canCreate: true, canUpdate: true, canDelete: true }}
>
{/* Add your chosen UI adapter components here */}
</SchedulerProvider>
);
}Documentation
For full documentation and examples, visit the main repository.
