Jump to content

CalendarPanel Event back color


bahry

Recommended Posts

Hi,

 

You can analyze this demo:

 \FMSoft\Framework\uniGUI\Demos\Desktop\CalendarPanel

UniCalendar -> Calendars property

 

and

 

UniServerModule -> CustomCSS:

 

for example for CalendarID=4

.ext-color-4,
.ext-ie .ext-color-4-ad,
.ext-opera .ext-color-4-ad {
    color: #aa00aa;
    background: #xxxxxx; <------------------------
}
.ext-cal-day-col .ext-color-4,
.ext-dd-drag-proxy .ext-color-4,
.ext-color-4-ad,
.ext-color-4-ad .ext-cal-evm,
.ext-color-4 .ext-cal-picker-icon,
.ext-color-4-x dl,
.ext-color-4-x .ext-cal-evb {
    background: #aa00aa;
}
.ext-color-4-x .ext-cal-evb,
.ext-color-4-x dl {
    border-color: #007700;
}

Best regards.

Link to comment
Share on other sites

Hi,

Actually I copy the CalendarPanel from the example and also copied the CSS and put it in UniServerModule -> CustomCSS:

but nothing changed, and the background remained white and even the fonts is white.

 

Regards

 

Hi,

 

You can analyze this demo:

 \FMSoft\Framework\uniGUI\Demos\Desktop\CalendarPanel

UniCalendar -> Calendars property

 

and

 

UniServerModule -> CustomCSS:

 

for example for CalendarID=4

.ext-color-4,
.ext-ie .ext-color-4-ad,
.ext-opera .ext-color-4-ad {
    color: #aa00aa;
    background: #xxxxxx; <------------------------
}
.ext-cal-day-col .ext-color-4,
.ext-dd-drag-proxy .ext-color-4,
.ext-color-4-ad,
.ext-color-4-ad .ext-cal-evm,
.ext-color-4 .ext-cal-picker-icon,
.ext-color-4-x dl,
.ext-color-4-x .ext-cal-evb {
    background: #aa00aa;
}
.ext-color-4-x .ext-cal-evb,
.ext-color-4-x dl {
    border-color: #007700;
}

Best regards.

Link to comment
Share on other sites

You can use css "#", every cell has an ID, for example for cell: 05/02/2017:

#O13_id-month-day-20170205 {
 background-color:#f00 !important;
} 

013 = UniCalendarPanel1.JSName

 

so you can use #id and assign css class as the color you want.

Link to comment
Share on other sites

Hi,

Actually I copy the CalendarPanel from the example and also copied the CSS and put it in UniServerModule -> CustomCSS:

but nothing changed, and the background remained white and even the fonts is white.

 

Regards

 

It should work,

then if not difficult for you, make a test case...

Link to comment
Share on other sites

Hi,

I think the problem from my side, when I create another frame and using the same procedures it works,

so I used the new one, but till now I couldn't get the reason why it's not working in the first one.

 

Best Regards

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