AssignmentModelMixin
Properties
5
Properties
5Class hierarchy
Identifies an object as an instance of AssignmentModelMixin class, or subclass thereof.
Identifies an object as an instance of AssignmentModelMixin class, or subclass thereof.
Other
Convenience property to get the name of the associated event.
Returns true if the Assignment can be persisted (e.g. task and resource are not 'phantoms').
Note that when using single assignments, assignments are not persisted.
Convenience property to get the name of the associated resource.
Functions
3
Functions
3Editing
Set value for the specified field(s), triggering engine calculations immediately. See Model#set() for arguments.
assignment.set('resourceId', 2);
// assignment.resource is not yet resolved
await assignment.setAsync('resourceId', 2);
// assignment.resource is resolved
| Parameter | Type | Description |
|---|---|---|
field | String | Object | The field to set value for, or an object with multiple values to set in one call |
value | * | Value to set |
silent | Boolean | Set to |
Other
Returns the resource associated with this assignment.
Returns: ResourceModel -
Instance of resource
Fields
3
Fields
3drawDependencies: Boolean
Specify false to opt out of drawing dependencies from/to this assignment
eventId: String | Number
Id for the event to assign
resourceId: String | Number
Id for the resource to assign to