provide a month picker

hi,
I want to provide a month picker.
datepicker has only “time” type. but i need “month” type.

Currently, there is no easy way to have a month-picker only.
Probably you can create a custom control by using a popup with dataview inside.

Could you provide a sample for that using protoUI?

im using webix for about 1yr now and still not really firm with creating new protos, …my ones have mostly unwanted sideeffekts oder simply don’t run well :(((

This is it without custom views

http://webix.com/snippet/8b807fe2

This is the same code as custom view

http://webix.com/snippet/5db9d5c1

As you can see I just moved the config options into the $init handler of a new view.

thank you. what i tried was a derivate of the date picker, because i need to pick month/year.
when i extend the date picker (without any changes), i.E. the icon disappears.

http://webix.com/snippet/7b8c9ba1

You need to set $cssName property. It allows to apply css styles of another view:

http://webix.com/snippet/b1d632f1

Thanks a lot.
Little more docu and samples on that issue would be nice some day :wink:

There seems still to be a bug in doc in parameter listing…2nd param is not “the name of the new view”.
http://docs.webix.com/api___protoui.html

Thank you for the remarks! We will correct the documentation.