Resource Properties

The resource data structure for the scheduler is straightforward with a couple of base properties that the component understands and uses to render the UI. Besides the base properties you can add any custom property, like title, job ...

  • id - This is an id that can be referenced in the event data
  • name - The name of the resource that will be printed at the top of the respective column
  • color - The color controls the default event color of the resource. Event colors can be specific above this. If the color is omitted the underlying events will inherit the default calendar color
  • eventCreation - This controls if events can be created or dropped onto this resource
  • children - Array of resource objects which will render as a child of the specified resource
  • collapsed - Defines the displayed state of the child resoruce group
  • eventDragBetweenResources - Specifies whether the events in the specified resource are movable across resources. If set to false has precedence over dragBetweenResources option of the calendar.
  • eventDragInTime - Specifies whether the events in the specified resource are movable in time. If set to false has precedence over dragInTime option of the calendar.
  • eventResize - Specifies whether the events in the specified resource are resizable. If set to false has precedence over dragToResize option of the calendar.
  • eventOverlap - Specifies whether the events in the specified resource are allowed to overlap. If set to false has precedence over eventOverlap option of the calendar.
  • fixed - Specifies whether the resource is fixed to the top. If set to true, the specified resource will stick to the top when scrolling.
  • reorder - Specifies whether the resource can be dragged and reordered. If set to false and the resourceReorder in view option is enabled , the specified resource cannot be dragged and reordered.
Get started with this example

Demo

html<mbsc-eventcalendar [resources]="myResources"></mbsc-eventcalendar>
tsmyResources = [{
    //base properties
    fixed: true,
    id: "room",
    name: 'Main hall',
    // add any property you'd like'
    title: 'Conference room',  
}, {
    // base properties
    id: 'team',
    name: 'Team 1',
    eventCreation: false,
    children: [{
        // base properties
        id: 1,
        name: 'Ryan',
        color: '#e20000',
        // add any property you'd like
        title: 'UX Designer',
        job: 'Apollo Project'
    }, {
        // base properties
        id: 2,
        name: 'Kate',
        color: '#60e81a',
        // add any property you'd like
        title: 'Product Developer',
        job: 'Yorick Project'
    }, {
        // base properties
        id: 3,
        name: 'John',
        color: '#3ba7ff',
        // add any property you'd like
        title: 'Data Analyst',
        job: 'Titus Project'
    }, {
        // base properties
        id: 4,
        name: 'Mark',
        color: '#e25dd2',
        // add any property you'd like
        title: 'Network Administrator',
        job: 'Yorick Project'
    }, {
        // base properties
        id: 5,
        name: 'Sharon',
        color: '#f1e920',
        // add any property you'd like
        title: 'Data Quality Manager',
        job: 'Apollo Project'
    }, {
        // base properties
        id: 6,
        name: 'Emma',
        color: '#1ac38d',
        // add any property you'd like
        title: 'Help Desk Specialist',
        job: 'Titus Project'
    }, {
        // base properties
        id: 7,
        name: 'Phil',
        color: '#1ac38d',
        // add any property you'd like
        title: 'UX Designer',
        job: 'Titus Project'
    }, {
        // base properties
        id: 8,
        name: 'Vic',
        color: '#1ac38d',
        // add any property you'd like
        title: 'Product Developer',
        job: 'Yorick Project'
    }, {
        // base properties
        id: 9,
        name: 'Pam',
        color: '#1ac38d',
        // add any property you'd like
        title: 'Help Desk Specialist',
        job: 'Apollo Project'
    }, {
        // base properties
        id: 10,
        name: 'Suzie',
        color: '#1ac38d',
        // add any property you'd like
        title: 'Data Analyst',
        job: 'Apollo Project'
    }, {
        // base properties
        id: 11,
        name: 'Nina',
        color: '#1ac38d',
        // add any property you'd like
        title: 'Network Administrator',
        job: 'Titus Project'
    }]
}];
Define resource properties on the Timeline — set up nested groups, fixed rows, and per-resource drag, resize, and overlap controls.

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.