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.

certain EventApi prop getters (like startEditable) be computed?

See original GitHub issue

When defining the options object when creating a calendar, the property eventStartEditable is ignored. You need to manually set startEditable for each Event to drag them around.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
baileyandycommented, Oct 16, 2018

Confirmed. I was about to raise this myself (see comment end for workaround). My use-case might be different as I am setting editable on the EventSource - although setting startEditable on the EventSource does not seem to work either.

If I understand correctly, the EventApi exposes editable as startEditable and durationEditable but when I try to use startEditable in an eventOverlap function, for example:

this.fullCalendar = new FullCalendar.Calendar(this.calendarRef, {
    eventOverlap: this.eventOverlap,
});

this.fullCalendar.addEventSource({
    rendering: 'background',
    editable: false
    events: getFn
});

private eventOverlap(stillEvent: EventApi, movingEvent: EventApi) {
    return !stillEvent.startEditable && movingEvent.startEditable;
}

it is always null, as are all the props exposed from the def object.

This seems to be a regression since v4-alpha.1

As a workaround, I can access the correct value via stillEvent.source.internalEventSource.startEditable

0reactions
chuchiperrimancommented, Nov 24, 2021

Same problem here. We return a list of events some editable: true and others with editable: false. In the eventClick I’m trying to access eventClickInfo.event.editable but the the property does not exists.

I’m searching for a workaround in fullcalendar 5 while these properties are added

Fixed using eventClickInfo.event.startEditable instead of editable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to give rendering control to users with prop getters
Render props are awesome, put it together with prop getters and you have an awesome combination to give users of your React components......
Read more >
fullcalendar/common/main.js.map - UNPKG
eventDefMemberAdders) {\n __assign(def, memberAdder(refined))\n }\n\n // help out EventApi from having user modify props\n Object.freeze(def.ui.
Read more >
Index (jfoenix 1.5.0 API) - Javadoc.io
Converts the node provided into an object defined by the specific converter. fromValueProperty() - Method in class com.jfoenix.transitions.JFXFillTransition.
Read more >
Pass data from Vuex getter to component prop - Stack Overflow
You could just map the state directly without the need for a getter. computed: { ...mapState({permissions: state => state.
Read more >
https://wbbprimaryeducation.org/BootstrapEnabledSl...
firstChild as HTMLElement\n}\n\nexport function htmlToElements(html: string): ... getComputedStyle(el)\n let borderLeft = parseInt(computedStyle.
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