Jump to content

Adjust calendar?


sicoobcooplivre

Recommended Posts

12 hours ago, sicoobcooplivre said:

Please, is there a possibility to decrease the spacing between events, as in the attachment, so that I can display more events to the user?

I think the two solutions (links) that are given in this post, they give you the most optimal solution at the moment. And this is for MonthView as you know.

Link to comment
Share on other sites

@Sherzod

Good morning!
Please, I need some help, I already asked this question, but I did it wrong:

In my calendar I just use "isallday=false"!

Please, is there a possibility for me to invert the color via command, that is, leaving the background filled in, regardless of whether the event is set to "isallday=false"?

I need this, because it's a request from my user, and I know how to do it!

In the attached example, in the "day" and "week" view, the background of the event is correct, filled in red. But when my user goes to see the "month" view, there is no background, only the text turns red!

My user uses colors to organize himself!

I know it sounds silly, but it's important to me, and even inspecting the objects in the browser, I couldn't find a solution!

Therefore, I ask again: is there a possibility that the event being set to "isallday=false", in the "month" view, does it fill the background of the event with the color that I define?

Did I explain?
Thank you very much for your attention!
Great day!

question.png

Link to comment
Share on other sites

  • 2 weeks later...
19 hours ago, sicoobcooplivre said:

 

update.png

Solution:

1. UniCalendarPanel.ClientEvents.UniEvents ->

function beforeInit(sender, config)
{
    config.todayButton = {
        hidden: true
    };
    
    config.nextButton = {
        hidden: true
    };
    
    config.previousButton = {
        hidden: true
    };
    
    config.dateTitle = {
        hidden: true
    };
    
    config.cls = 'customCalendar';
}

2. UniServerModule.CustomCSS ->

.customCalendar .x-calendar-panel-switcher {
    left: 0 !important;
}

 

Link to comment
Share on other sites

@SherzodSynchronization is right, everything worked!


There are users who register as IsAllDay=True and there are users who enter the time.
And when I clicked a button, I wanted to leave everything as IsAllDay=True so I could display it with more colors, it looks better!
And as I already have routines in ClientEvents-ExtEvents-click, I wanted to use this same javascript code and go through all the events and set them to IsAllDay=True.
But if you can't do it, no problem!
Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...