Skip to content

{ Monthly Archives } April 2009

Improving jQuery UI widget getters/setters

Right now UI widgets need to explicitly declare "getter" functions (methods that return information about the widget rather than manipulate it) with $.ui.widget.getter = 'gettermethod1 gettermethod2'. The reason is that most jQuery plugins are chainable: $(selector).widget('method').css('color','blue') executes method on each element matched, then css('color','blue') on each element. Some plugins and some uses of plugins instead [...]

New jQuery Widget: flexcal

Updated 2011-10-30 to version 2.1, with some bug fixes Just what the world needs—another date picker Download the code.