Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Update README.md - custom event re-rendering section #531

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ If you need to automatically re-render other event data, you can use `calendar-w
<ui-calendar calendar-watch-event="extraEventSignature(event)" ... >
// will now watch for price

If you want to extend re-rendering criteria to watch multiple fields return concatenation of field values, for example:

$scope.extraEventSignature = function(event) {
returns "" + event.price + event.quantity;
}

### Adding new events issue

When adding new events to the calendar they can disappear when switching months. To solve this add `stick: true` to the event object being added to the scope.
Expand Down