Skip to content

Commit

Permalink
Merge pull request #100 from tomashavlas/master
Browse files Browse the repository at this point in the history
add resourceEditable, rendering, overlap, and constraint properties to event
  • Loading branch information
philippfrenzel authored Nov 14, 2017
2 parents a6995a2 + 6e4238a commit b571b68
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions models/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,32 @@ class Event extends Model
*/
public $durationEditable;

/**
* Overrides the master eventResourceEditable option for this single event.
* @var boolean
*/
public $resourceEditable

/**
* Allows alternate rendering of the event, like background events.
* Can be empty, "background", or "inverse-background"
* @var [type]
*/
public $rendering;

/**
* Overrides the master eventOverlap option for this single event.
* If false, prevents this event from being dragged/resized over other events. Also prevents other events from being dragged/resized over this event.
* @var boolean
*/
public $overlap;

/**
* Overrides the master eventConstraint option for this single event.
* @var [type]
*/
public $constraint;

/**
* A reference to the event source that this event came from.
* @var [type]
Expand Down Expand Up @@ -149,8 +175,8 @@ public function rules()
{
return [
[['id', 'resourceId'], 'integer'],
['title, allDay, start, end, url, className, source, color, backgroundColor, borderColor, textColor, nonstandard', 'safe'],
['editable, startEditable, durationEditable', 'boolean'],
['title, allDay, start, end, url, className, rendering, constraint, source, color, backgroundColor, borderColor, textColor, nonstandard', 'safe'],
['editable, startEditable, durationEditable, resourceEditable, overlap', 'boolean'],
];
}

Expand Down

0 comments on commit b571b68

Please sign in to comment.