Resource::getChildren

Returns a list of a resource’s child resources.

resource.getChildren()

Example:

var calendar = new Calendar(calendarEl, {
  resources: [
    { id: 'a', title: 'Resource A', children: [
      { id: 'a1', title: 'Resource A1' },
      { id: 'a2', title: 'Resource A2' }
    ] }
  ]
});

var parentResource = calendar.getResourceById('a');
var children = parentResource.getChildren();
var childIds = children.map(function(child) { return child.id });

console.log(childIds); // [ 'a1', 'a2' ]