ResourceModelMixin
Mixin
Mixin that holds configuration shared between resources in Scheduler and Scheduler Pro.
Fields
Fields belong to a Model class and define the Model data structure-
Unique identifier
-
Get or set resource name
-
Set to
falseto prevent overlapping events for this resource -
Margin between stacked event bars for this resource, in px.
-
Controls the style used for events assigned to this resource. Can be overridden per event using EventModels eventStyle config. See Schedulers eventStyle config for available options.
-
Image name relative to resourceImagePath, used by
ResourceInfoColumnand vertical modesResourceHeaderto display a miniature image for the resource. Set value tofalseto disable image display. -
Fully qualified image URL, used by
ResourceInfoColumnand vertical modesResourceHeaderto display a miniature image for the resource. -
Set to
falseto not display an avatar for this resource in the ResourceInfoColumn
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ResourceModelMixin class, or subclass thereof.
-
Returns all assignments for the resource
-
Returns the initials (first letter of the first & last space-separated word in the name) or an empty string if this resource has no name. You can override this method in a ResourceModel subclass to provide your own implementation
-
Identifies an object as an instance of ResourceModelMixin class, or subclass thereof.
-
Returns
trueif the resource can be persisted. In a flat store, a resource is always considered persistable. In a tree store, a resource is considered persistable if its parent node is persistable.
Functions
Functions are methods available for calling on the class-
unassignAll( )
Unassigns this Resource from all its Events