lema Posted November 17, 2021 Share Posted November 17, 2021 Hello ! As title says, is there any way to select -or mark- a week in uniCalendar (as screenshot below). No need to get the range, or dynamically selection. I just want to use it in conjunction with uniCalendarPanel (in week mode). (running v.1.90.0.1554) TIA, Lefteris. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 Hello, 1 hour ago, lema said: Do you want to color the row for the selected date? Quote Link to comment Share on other sites More sharing options...
lema Posted November 17, 2021 Author Share Posted November 17, 2021 9 hours ago, Sherzod said: Hello, Do you want to color the row for the selected date? Hello ! Yes, exactly that. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 28 minutes ago, lema said: Yes, exactly that. I will post here, later Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 17 minutes ago, Sherzod said: I will post here, later 1. UniServerModule.CustomCSS: .customTr { background-color: yellowgreen; transition: all 0.3s ease-in; } 2. MainForm.Script: Ext.override(Ext.DatePicker, { update: function(date, forceRefresh) { var me = this; this.callParent(arguments); Ext.defer(function() { me.fireEvent("select"); }, 200); } }); 3. UniCalendar -> ClientEvents -> ExtEvents -> function picker.select(sender, date, eOpts) function picker.select(sender, date, eOpts) { var me=this; me.getEl().select('tr').each(function(el) { el.removeCls('customTr') }); Ext.defer(function() { me.getEl().select('.x-datepicker-selected').each(function(el) { el.up('tr').addCls('customTr') }) }, 0); } 1 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted November 17, 2021 Share Posted November 17, 2021 Many Thanks Maestro. You should edit a book : "Developing Client Side with Unigui" and i will buy it 1 Quote Link to comment Share on other sites More sharing options...
lema Posted November 17, 2021 Author Share Posted November 17, 2021 Thank you ! I didn't try it yet, but it is really impressive that you can analyze, find and implement it so fast. Also, I wish, I could understand that JavaScript stuff... I wonder, where can I find such information? Sencha Ext JS docs? forums? Could you please give me a hint? Quote Link to comment Share on other sites More sharing options...
lema Posted November 17, 2021 Author Share Posted November 17, 2021 1 hour ago, Abaksoft said: Many Thanks Maestro. You should edit a book : "Developing Client Side with Unigui" and i will buy it Not a bad idea ! 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.