Skip to content
Merged
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
16 changes: 12 additions & 4 deletions content/docs/plugins/plugin-gantt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const schema: ObjectGanttSchema = {
### With Static Data

```tsx
const schema = {
import type { ObjectGanttSchema } from '@object-ui/types';

const schema: ObjectGanttSchema = {
type: 'object-gantt',
staticData: [
{
Expand Down Expand Up @@ -235,7 +237,9 @@ const objectProviderGantt: ObjectGanttSchema = {
### Value Provider (Static)

```tsx
const valueProviderGantt = {
import type { ObjectGanttSchema } from '@object-ui/types';

const valueProviderGantt: ObjectGanttSchema = {
type: 'object-gantt',
staticData: [
{ id: 1, title: 'Task 1', start: '2024-01-01', end: '2024-01-15' },
Expand All @@ -252,7 +256,9 @@ const valueProviderGantt = {
### API Provider

```tsx
const apiProviderGantt = {
import type { ObjectGanttSchema } from '@object-ui/types';

const apiProviderGantt: ObjectGanttSchema = {
type: 'object-gantt',
data: {
provider: 'api',
Expand Down Expand Up @@ -351,7 +357,9 @@ const constructionGantt: ObjectGanttSchema = {
### Marketing Campaign

```tsx
const campaignGantt = {
import type { ObjectGanttSchema } from '@object-ui/types';

const campaignGantt: ObjectGanttSchema = {
type: 'object-gantt',
staticData: [
{
Expand Down