v7.3.0

ResourceModelMixin
Mixin

Mixin that holds configuration shared between resources in Scheduler and Scheduler Pro.

No results

Fields

Fields belong to a Model class and define the Model data structure
  • Unique identifier

  • Get or set resource name

  • Set to false to prevent overlapping events for this resource

  • Margin between stacked event bars for this resource, in px.

  • eventStyle : 'tonal'/'filled'/'bordered'/'traced'/'outlined'+ 9 more

    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 ResourceInfoColumn and vertical modes ResourceHeader to display a miniature image for the resource. Set value to false to disable image display.

  • Fully qualified image URL, used by ResourceInfoColumn and vertical modes ResourceHeader to display a miniature image for the resource.

  • Set to false to not display an avatar for this resource in the ResourceInfoColumn

Properties

Properties are getters/setters or publicly accessible variables on this class
  • Returns all assignments for the resource

  • initials : String
    READONLY

    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

  • isResourceModelMixin : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of ResourceModelMixin class, or subclass thereof.
  • Returns true if 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
    • Unassigns this Resource from all its Events

    Type definitions

    Source path

    Scheduler/model/mixin/ResourceModelMixin.js

    Contents