stefanuebe/vaadin-fullcalendar

Set collation

Opened this issue · 11 comments

entry.setAllDay
If entry is set to all-day, how do I set its sorting?

Can I set it to order by addition?

Please see the official docs of the FC lib regarding entry / event order. You can set the respective option using the ENTRY_ORDER and ENTRY_ORDER_STRICT enums in Java.

https://fullcalendar.io/docs/eventOrder

I guess in your case you may need to setup a custom property that is set and increased for each added entry and try to use that.

I played a bit around trying various things. Using the custom properties does not seem to work, also passing another non standard property seems to be problematic. Sorry, looks like it is currently not possible due to limits of the used library. The only workaround I could imagine is to modify the client side dom itself and rearranging the respective elements as needed using JavaScript.

I'll try to extend the component to allow it using a provided function, so that you can use a JS function to sort the entries. I hope that will work then.

Thanks! How can I set the TextColor of timeEntry? version:6.0.3

#112
此方法在6.0.2版本中只有设置allDay时才生效.

image
The configuration using the class name was attempted, but it did not take effect due to the influence of .fc a:not(:any-link).

Try to be more concrete with your selector path, so that it will be less general than the given one by the default styles, e.g.

.fc a:not(:any-link).entry_block_holiday

You can also check the respective methods on the Entry class itself, where you can set different colors like Entry#setTextColor

All the above methods have been tried, but none has worked.

Sorry, I missed your response. Can you please provide us some sample code to reproduce and test your issue?