How to override JS widgets in odoo 9? - odoo-9

I want to over ride web.datepicker widget in my custom module. How to do this? Actually I want to disable all days except Saturday in Calendar

Related

It is possible to show a weekNumber in Kendo UI Angular DatePicker

In the MVC and the jQuery Version of Kendo's DatePicker it's possible to show the weekNumber as a column in the DatePicker.
How can I enable this feature in the Angular 2 - Edition of the component? Things like [weekNumber]="true" doesn't work.
jQuery - Edition:
https://docs.telerik.com/kendo-ui/api/javascript/ui/datepicker#configuration-weekNumber
Right now, Kendo Calendar for Angular doesn't support week numbers. There is no feasible workaround that we can think of as the week numbers are part of the internal view that renders the month days.
As far as I know, it is final development stage and pretty soon it should be released as #progress/kendo-angular-dateinputs#dev package. I suppose this will happen within a week or so.

Need to customize xlabs calendar day cell in xamarin forms

I am using XLabs CalendarView to look my calendar as attached image but i am facing issues to customizedaycell to get expected output
xlab calender control link https://github.com/XLabs/Xamarin-Forms-Labs/wiki/Calendar-Control
I need the number below date on some date cells.
Your help will be appreciated.

How to populate Picker items before open, using Xamarin.Forms

Using Xamarin.Forms, how do I populate a Picker with items, immediately before the Picker opens?
We have a number of pickers on the same page and it would be inefficient to populate all items upfront, as some of the queries are expensive. For reference, I'm trying to get this working on Xamarin.Android first, and am using the latest stable version - 1.2.36257 at the time of writing.
I've tried:
Focused event - This almost works, but changes to Items are not applied until the next time the Picker opens.
TapGestureRecognizer - The Tapped event doesn't seem to be fired. Perhaps it doesn't work with a Picker.
There's nothing that the Xamarin.Forms Picker exposes from what I can see either, that would allow you to achieve what your wanting.
TapGesture's can be troublesome. For instance I quickly tried it on WindowsPhone, and that is not recognizing the TapGesture either. Your also find some different behavior with different controls as well - with the same response not being uniform across platforms.
I tried hooking into the Picker PropertyChanged / PropertyChanging, and this has the outcome exactly the same as attempting to hook into the Focused event handler that you experienced, with it only working after the picker has initially been displayed.
The only way around this would be to write a custom renderer to achieve what you want to do.
Within that, you could then expose custom events such as OnBeforeAppearing, that would allow you to then pre-load the picker with the items you need from the page at time of use.

WP7 Datepicker page - custom background

I want to use the WP7 toolkit datepicker and have my own custom background on the picker page. There are several examples that show the use of a custom page to replace the existing selection mechanism e.g. http://windowsphonegeek.com/articles/wp7-datepicker-and-timepicker-in-depth--api-and-customization
But I don't want to do that - I simply want the picker page to have a different background (than the themed white or black) Can I do this easily. Or do I have to download the toolkit code and include that in my solution and adjust that?
In order to do that you will have to create a copy of the DatePickerPage.xaml file from the Silverlight for Windows Phone Toolkit in your application, change it to meet your requirements, and then on your DatePicker control set the PickerPageUri proprety to the new DatePickerPage.xaml

windows phone toolkit time picker convert to military time

Im currently using the available toolkit for windows phone. By using the time picker, I want to change it to military time. But I dont know to customize it.
So I came up with creating my own time picker by using the LoopingSelector, but I dont know how will I implement it along with appbar, since this was only a popup.
What is the strategic way to recreate this timepicker along with appbar?
Given that the underlying type is still the same (DateTime), then I think that rather than creating a new TimePicker, you could just implement a custom picker page as described in WP7 DatePicker and TimePicker in depth | API and Customization on WindowsPhoneGeek.com. Richard Griffin also has a post that covers the same topic for DatePicker.

Resources