common helpers

A set of common helpers.

Methods
alert creates an alert box
animate animate some HTML area
attachEvent
bind binds a function to an object
blockEvent
callEvent
clone makes a shallow copy of an object
confirm creates a confirm box
copy makes a deep copy of an object/array
delay delays the code execution for the specified number of milliseconds
detachEvent
dp returns the dataprocessor object
editStop closes an active editor in all Webix components
event attaches an event handler to an HTML element
eventRemove removes an event handler from an HTML element
exec executes a code string at runtime
extend merges the contents of 2 objects together into the first object
hasEvent
isArray checks whether the passed value is an array
isDate checks whether the passed value is a date object
isUndefined checks whether the passed value is undefined
mapEvent
message shows a non-modal info message box
modalbox creates a modal box
once allows to call code only once
print prints a view according to the specified settings
prompt creates a message box with an input
proto merges the contents of several objects together into the first object
protoUI merges several objects and creates a new Webix component
proxy creates a proxy object
ready event handler called just after the page has been completely parsed.
remote mapping for server side API
require includes and caches a JS/CSS module(s)
send sends an HTTP request to the server (emulates submitting a form)
single implements the singleton pattern
stringify converts object data into a string
template converts string to templating function
template.empty returns an empty string
template.escape escapes HTML strings in data
toCSV exports data of a data component to a CSV document
toExcel exports data of a data component to an Excel document
toFunctor converts a string to a function
toNode returns an HTML node object
toPDF exports data of a data component to a PDF file
toPNG exports data of a component to a PNG file
type defines new rendering type for the component
ui the object constructor. Creates a new instance of the specified view
uid returns a unique id
unblockEvent
wrap 'wraps' a function around the original function
Events
onClick fires when the user clicks on an element
onRotate occurs on screen rotating
Other
name returns the name of the component
version returns the current version of the library
Back to top