Search results

ResourceDirective

e-resources directive represent a resources of the Angular Schedule. It must be contained in a Schedule component(ejs-schedule).

<ejs-schedule>
  <e-resources>
   <e-resource field='RoomId' name='Rooms'></e-resource>
   <e-resource field='OwnerId' name='Owners'></e-resource>
  </e-resources>
</ejs-schedule>

Properties

allowMultiple

any

When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the selected resources.

Defaults to false

colorField

any

It maps the color field from the dataSource, which is used to specify colors for the resources.

Defaults to ‘Color’

cssClassField

any

It maps the cssClass field from the dataSource, which is used to specify different styles to each resource appointments.

Defaults to ‘CssClass’

dataSource

any

Assigns the resource dataSource The data can be passed either as an array of JavaScript objects, or else can create an instance of DataManager in case of processing remote data and can be assigned to the dataSource property. With the remote data assigned to dataSource, check the available adaptors to customize the data processing.

Defaults to []

endHourField

any

It maps the endHour field from the dataSource, which is used to specify different work end hour for each resources.

Defaults to ‘EndHour’

expandedField

any

It maps the expanded field from the dataSource, which is used to specify whether each resource levels in timeline view needs to be maintained in an expanded or collapsed state by default.

Defaults to ‘Expanded’

field

any

A value that binds to the resource field of event object.

Defaults to null

groupIDField

any

It maps the groupID field from the dataSource, which is used to specify under which parent resource, the child should be grouped.

Defaults to ‘GroupID’

idField

any

It maps the id field from the dataSource and is used to uniquely identify the resources.

Defaults to ‘Id’

name

any

It represents a unique resource name for differentiating various resource objects while grouping.

Defaults to null

query

any

Defines the external query that will be executed along with the data processing.

Defaults to null

startHourField

any

It maps the startHour field from the dataSource, which is used to specify different work start hour for each resources.

Defaults to ‘StartHour’

textField

any

It maps the text field from the dataSource, which is used to specify the resource names.

Defaults to ‘Text’

title

any

It holds the title of the resource field to be displayed on the schedule event editor window.

Defaults to null

workDaysField

any

It maps the working days field from the dataSource, which is used to specify different working days for each resources.

Defaults to ‘WorkDays’