React-big-calendar: weekHeaderFormat has no effect

Created on 9 May 2016  路  8Comments  路  Source: jquense/react-big-calendar

it is used only in propTypes and nowhere else in the code

bug help wanted

Most helpful comment

I meant it's is not even a bug. :smile: A bug would require some sort of implementation that does not work correctly. But here even the basic implementation is missing, so it is clearly not a "bug" but a "feature".

The documentation suggests that the feature already exists. This is highly misleading.

Its like putting some documentation about a method like enableGmailSync that is not event implemented. It feels like serious cheating.

All 8 comments

Bump - can confirm this is the case. It was really quite frustrating to realize after so much time debugging.

PR's Welcome, not sure when we'll get a moment to fix it. But i'll happily merge a PR

This should be removed from documentation entirely. It is not a bug, but a missing feature since it is not implemented at all.

I mean it's clearly a bug

I meant it's is not even a bug. :smile: A bug would require some sort of implementation that does not work correctly. But here even the basic implementation is missing, so it is clearly not a "bug" but a "feature".

The documentation suggests that the feature already exists. This is highly misleading.

Its like putting some documentation about a method like enableGmailSync that is not event implemented. It feels like serious cheating.

not really sure why you are splitting hairs over this...

Seems working for me

var formats = { dayRangeHeaderFormat : function(_ref3, culture, local) { var start = _ref3.start; var end = _ref3.end; return local.format(start, 'D MMM YYYY', culture) + ' - ' + local.format(end, 'D MMM YYYY', culture); } }

<BigCalendar formats={formats} />

I cannot get this to work either, but it is unclear what the props should be. I assumed it would be a string format, but the above commenter used a function?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhming0 picture zhming0  路  3Comments

crashspringfield picture crashspringfield  路  4Comments

nicolasriccardi picture nicolasriccardi  路  3Comments

nirchernia picture nirchernia  路  3Comments

dogC76 picture dogC76  路  4Comments