| option | type | default | description |
|---|---|---|---|
| size | string | large | must be "large" or "small". makes the color picker 10x7 or 4x3 respectively |
| onSelect | function | Prototype.emptyFunction | gets called when the user selects a color |
| option | type | default | description |
|---|---|---|---|
| onSelect | function | Prototype.emptyFunction | gets called when the user selects a date |
| onCancel | function | Prototype.emptyFunction | gets called when the user cancels the date picker |
| showCancel | boolean | false | toggles display of the date picker |
| month | int | new Date().getMonth() + 1 | month to start the date picker at. month is 1 based (e.g. jan == 1) if no month is passed today's month is selected. must be passed with year. |
| year | int | new Date().getYear() + 1900 | year to start the date picker at. if no year is passed today's year is selected. must be passed with month. |
| dateString | string | null | sets the selected date with the Date that is returned from the method Date.parse() |
| selectedDate | object | {day:null, month:null, year:null} | Mostly used internally but feel free to pass in an object with attributes for day, month and year. day, month and year are all 1 based and follow the same format as the above options. |
| option | type | default | description |
|---|---|---|---|
| beforeEachRow | function | Prototype.emptyFunction | gets called before each row |
| afterEachRow | function | Prototype.emptyFunction | gets called after each row |
| beforeHeaderRow | function | Prototype.emptyFunction | gets called before header row |
| afterHeaderRow | function | Prototype.emptyFunction | gets called after header row |
| beforeFooterRow | function | Prototype.emptyFunction | gets called before footer row |
| afterFooterRow | function | Prototype.emptyFunction | gets called after footer row |
| option | type | default | description |
|---|---|---|---|
| data | json | null | this is a mandatory option if you are using the data grid as a widget. It tells the data grid what data to display. |
| option | type | default | description |
|---|---|---|---|
| onSelect | function | Prototype.emptyFunction | gets called when the user selects a rating |
| selected | integer | null | sets the original |
| option | type | default | description |
|---|---|---|---|
| offsetLeft | integer | 0 | the number of pixels the tooltip is moved left after the position is calculated |
| offsetTop | integer | 0 | the number of pixels the tooltip is moved down after the position is calculated |
| direction | string | below | the direction the popup appears relative to the handle. Currently supports (below, right). |
| tooltip | string or DOM element | null | This is the actual element that gets popped up. |
| option | type | default | description |
|---|---|---|---|
| tooltipText | string | null | used for creating simple tooltips, if you specify this and tooltip as options this will overwrite the tooltip option. If you do not specify this or tooltip the widget will automatically bind the next DOM element as the tool tip |
| option | type | default | description |
|---|---|---|---|
| offsetLeft | integer | 0 | the number of pixels the tooltip is moved left after the position is calculated |
| offsetTop | integer | 0 | the number of pixels the tooltip is moved down after the position is calculated |
| direction | string | below | the direction the popup appears relative to the handle. Currently supports (below, right). |
| tooltip | string or DOM element | null | This is the actual element that gets popped up. |
| toggle | boolean | true | If this is set to true clicking on the handle once displace the tooltip click again closes it. |
| option | type | default | description |
|---|---|---|---|
| tooltipText | string | null | used for creating simple tooltips, if you specify this and tooltip as options this will overwrite the tooltip option. If you do not specify this or tooltip the widget will automatically bind the next DOM element as the tool tip |