Skip to content

Commit

Permalink
Merge pull request #1501 from TheBrockEllis/schedule-changeView
Browse files Browse the repository at this point in the history
Schedule component - add changeView method
  • Loading branch information
cagataycivici committed Dec 7, 2016
2 parents d75cc66 + b6ae9b5 commit bf8eb8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/schedule/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ export class Schedule implements DoCheck,OnDestroy,AfterViewChecked {
incrementDate(duration: any) {
this.schedule.fullCalendar('incrementDate', duration);
}

changeView(viewName: string) {
this.schedule.fullCalendar('changeView', viewName);
}

getDate() {
return this.schedule.fullCalendar('getDate');
Expand Down
7 changes: 6 additions & 1 deletion showcase/demo/schedule/scheduledemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,11 @@ <h3>Methods</h3>
<td>-</td>
<td><a href="http://fullcalendar.io/docs/current_date/getDate/">Read more</a></td>
</tr>
<tr>
<td>changeView(viewName)</td>
<td>viewName: A valid view string to change to</td>
<td><a href="https://fullcalendar.io/docs/views/changeView/">Read more</a></td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -708,4 +713,4 @@ <h3>Dependencies</h3>
</pre>
</p-tabPanel>
</p-tabView>
</div>
</div>

0 comments on commit bf8eb8b

Please sign in to comment.