Simpltry Javascript Widgets Reference

Simpltry.ColorPicker

simpltry_widget string
color_picker
constructor params
container, options
options
optiontypedefaultdescription
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
additional simpltry_options
none

Simpltry.DatePicker

simpltry_widget string
date_picker
constructor params
container, options
options
optiontypedefaultdescription
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.
additional simpltry_options
none

Simpltry.Form.MoveToNextField

simpltry_widget string
move_to_next
constructor params
field
options
none
additional simpltry_options
none

Simpltry.DataGrid

simpltry_widget string
grid
constructor params
container, data, options
options
optiontypedefaultdescription
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
additional simpltry_options
optiontypedefaultdescription
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.

Simpltry.RatingControl

simpltry_widget string
rating
constructor params
container, options
options
optiontypedefaultdescription
onSelect function Prototype.emptyFunction gets called when the user selects a rating
selected integer null sets the original
additional simpltry_options
none

Simpltry.MouseoverTooltip

simpltry_widget string
mouseover_tooltip
constructor params
container, options
options
optiontypedefaultdescription
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.
additional simpltry_options
optiontypedefaultdescription
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

Simpltry.ClickTooltip

simpltry_widget string
click_tooltip
constructor params
container, options
options
optiontypedefaultdescription
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.
additional simpltry_options
optiontypedefaultdescription
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