API

Full API documentation.

ch (Namespace)

Description

An object which contains all the public members.

Components

Autocomplete
Bubble
Calendar
Carousel
Component
Condition
Countdown
Custom
Dropdown
Email
EventEmitter
Expandable
Form
Layer
Max
MaxLength
Menu
Min
MinLength
Modal
Number
Popover
Positioner
Required
String
Tooltip
Transition
URL
Validation
Viewport

Namespaces

support
util

Properties

.onkeyinput String

Alphanumeric keys event.

.onlayoutchange String

Every time Chico UI needs to inform all visual components that layout has been changed, it emits this event.

.onpointerdown String

Equivalent to 'touchstart' or 'mousedown', depending on device capabilities.

.onpointerenter String

Equivalent to 'touchstart' or 'mouseenter', depending on device capabilities.

.onpointerleave String

Equivalent to 'touchend' or 'mouseleave', depending on device capabilities.

.onpointermove String

Equivalent to 'touchmove' or 'mousemove', depending on device capabilities.

.onpointertap String

Equivalent to 'touchend' or 'click', depending on device capabilities.

.onpointerup String

Equivalent to 'touchend' or 'mouseup', depending on device capabilities.

.onresize String

Equivalent to 'resize'.

.onscroll String

Equivalent to 'scroll'.

Methods

.factory(Klass)



    

Method in change of expose a friendly interface of the Chico constructors.

  • Klass - Object : Direct reference to the constructor from where the $-plugin will be created.

.onImagesLoads($el, callback)



    

Executes a callback function when the images of a query selection loads.

  • $el - : An image or a collection of images.
  • callback - : The handler the component will fire after the images loads.
$('selector').onImagesLoads(function () {
    console.log('The size of the loaded image is ' + this.width);
});