vaadin-fullcalendar icon indicating copy to clipboard operation
vaadin-fullcalendar copied to clipboard

Set collation

Open LiangZipeng-1998 opened this issue 1 year ago • 11 comments

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

LiangZipeng-1998 avatar Oct 17 '23 02:10 LiangZipeng-1998

Can I set it to order by addition?

LiangZipeng-1998 avatar Oct 18 '23 03:10 LiangZipeng-1998

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.

stefanuebe avatar Oct 18 '23 11:10 stefanuebe

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.

stefanuebe avatar Oct 18 '23 14:10 stefanuebe

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.

stefanuebe avatar Oct 18 '23 14:10 stefanuebe

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

LiangZipeng-1998 avatar Oct 19 '23 07:10 LiangZipeng-1998

https://github.com/stefanuebe/vaadin_fullcalendar/issues/112 此方法在6.0.2版本中只有设置allDay时才生效.

LiangZipeng-1998 avatar Oct 19 '23 07:10 LiangZipeng-1998

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).

LiangZipeng-1998 avatar Oct 19 '23 07:10 LiangZipeng-1998

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

stefanuebe avatar Oct 19 '23 08:10 stefanuebe

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

stefanuebe avatar Oct 19 '23 08:10 stefanuebe

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

LiangZipeng-1998 avatar Oct 19 '23 08:10 LiangZipeng-1998

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

stefanuebe avatar Jan 29 '24 13:01 stefanuebe