question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setters for all options

See original GitHub issue

Originally reported on Google Code with ID 293

Is there an easy way to set timeSlot property when fullcalendar is already
in use? I have different types of users in the drop-down list and each of
them have different settings (like timeSlot). After selecting one of users
I'd like to load calendar again with custom timeSlot property. I know Adam
introduced this featured in last released, but it only works for
apsectRatio, contentHeight and height. I need to setup timeSlot as well.
I'm on the deadline... Has anybody any clue how to resolve this issue?
Adam: is there any way to include this in the next release?

Thanks again for your great script. It's awsome!

Reported by marcin.milinski on 2010-01-15 14:32:25

Imported with 59 stars.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:56 (48 by maintainers)

github_iconTop GitHub Comments

11reactions
arshawcommented, Jul 11, 2016

This has been implemented and release in v2.9.0. You can set nearly any option dynamically like this:

$('#calendar').fullCalendar('option', 'lang', 'fr');

The languages and timezones demos are examples of this.

You can also set multiple options at the same time:

$('#calendar').fullCalendar('option', {
    lang: 'fr',
    isRTL: true
});

Not all options can be dynamically set. See the full docs for more info.

For most options, dynamically changing the value will rerender the entire current view (while keeping the previous scroll state). If special-case optimizations are needed for specific options, please make separate tickets.

For the Scheduler premium plugin, there is a known bug where the row expanded/contracted state is not maintained: https://github.com/fullcalendar/fullcalendar-scheduler/issues/196

Thanks for patiently waiting for this feature.

5reactions
arshawcommented, Jan 12, 2016

hoping to get to this late this Q1 or early Q2

Read more comments on GitHub >

github_iconTop Results From Across the Web

setter - JavaScript - MDN Web Docs
In JavaScript, a setter can be used to execute a function whenever a specified property is attempted to be changed. Setters are most...
Read more >
c# - Use same getter and setter for all properties in class
I would like to bind some sort of get and set event to all the options in my options class. My class looks...
Read more >
Getters and Setters Methods in Java - CodeGym
In today's lesson, we'll talk about Getters and Setters in Java. ... First, all instance variables (fields) must be marked with the private ......
Read more >
@Getter and @Setter - Project Lombok
You can annotate a class with a @Getter or @Setter annotation. Doing so is equivalent to annotating all non-static fields in that class...
Read more >
Getters and Setters in Java Explained - freeCodeCamp
For each instance variable, a getter method returns its value while a setter method sets or updates its value. Given this, getters and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found