Frederick Posted December 19, 2019 Share Posted December 19, 2019 1 - I only have the property ShowMonthView set. Is it possible to hide the Month button since it is redundant and clicking it does nothing? 2 - How do I change the background colour, font size, font style or font type of the header row? 3 - Is it possible to change the background colours of the entire weekend columns? 4 - Is it possible to highlight today's date by changing the font style and background of the cell? 5 - Is it possible to change the cell background of cells with events? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1514) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2019 Share Posted December 19, 2019 52 minutes ago, Frederick said: 1 - I only have the property ShowMonthView set. Is it possible to hide the Month button since it is redundant and clicking it does nothing? One possible solution... procedure TMainForm.UniCalendarPanel1ViewChange(Sender: TUniCalendarPanel; CurrentView: TUniCalendarViewType); begin (Sender as TUniCalendarPanel).JSInterface.JSCode(#1'.down("[xtype=segmentedbutton][value=month]").hide();'); end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2019 Share Posted December 19, 2019 59 minutes ago, Frederick said: 3 - Is it possible to change the background colours of the entire weekend columns? Maybe you want something like this CustomCSS: .x-calendar-weeks-weekend-cell { background-color: lightgray; } Quote Link to comment Share on other sites More sharing options...
Frederick Posted December 19, 2019 Author Share Posted December 19, 2019 8 minutes ago, Sherzod said: One possible solution... procedure TMainForm.UniCalendarPanel1ViewChange(Sender: TUniCalendarPanel; CurrentView: TUniCalendarViewType); begin (Sender as TUniCalendarPanel).JSInterface.JSCode(#1'.down("[xtype=segmentedbutton][value=month]").hide();'); end; This works. Thanks. Quote Link to comment Share on other sites More sharing options...
Frederick Posted December 19, 2019 Author Share Posted December 19, 2019 2 minutes ago, Sherzod said: Maybe you want something like this CustomCSS: .x-calendar-weeks-weekend-cell { background-color: lightgray; } Thanks. This works. Quote Link to comment Share on other sites More sharing options...
likemike Posted September 4, 2021 Share Posted September 4, 2021 On 12/19/2019 at 9:06 AM, Sherzod said: Maybe you want something like this CustomCSS: .x-calendar-weeks-weekend-cell { background-color: lightgray; } Hello! That works great for month-view, but not for week-view! (only tested in mobile version) Is there a customCSS for week-view? Maybe for day-view, too? Regards Quote Link to comment Share on other sites More sharing options...
likemike Posted September 24, 2021 Share Posted September 24, 2021 Up! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.