Home Reference Source

References

summary
public

Event emitter class

public

Base class defining the interface of a TableFilter feature

public

Makes HTML tables filterable and a bit more :)

public

F has(arr: Array, val: Any, caseSensitive: Boolean): Boolean

Checks if given item can be found in the passed collection

public

F addClass(ele: DOMElement, cls: String)

Adds the specified class to the passed element

public

F createCheckItem(id: String, chkValue: String, labelText: String, extraAttr: Array): Object

Creates and returns a checklist item

public

F createElm(tag: String, an: Array): Object

Creates an html element with given collection of attributes

public

F createOpt(text: String, value: String, isSel: Boolean): Object

Creates and returns an option element

public

Returns a text node with given text

public

F elm(id: String): DOMElement

Returns the element matching the supplied Id

public

F getFirstTextNode(node: NodeElement): String

Returns the first text node contained in the supplied node

public

F getText(node: NodeElement): String

Returns text + text of children of given node

public

F hasClass(ele: DOMElement, cls: String): Boolean

Determine whether the passed elements is assigned the given class

public

F removeClass(ele: DOMElement, cls: String)

Removes the specified class to the passed element

public

F removeElm(node: DOMElement): DOMElement

Removes passed node from DOM

public

F tag(tagname: String): NodeList

Returns list of element matching the supplied tag name

public

F addEvt(obj: DOMElement, type: String, Handler: Function, capture: Boolean)

Add event handler for specified event on passed element

public

F bound(fn: Function, scope: Object): *

Bind passed function to passed scope

public

F cancelEvt(evt: Event)

Cancels the event if it is cancelable, without stopping further propagation of the event.

public

F isKeyPressed(evt: Event, keyCodes: Array): *

Check code of pressed key is one of the expected key codes

public

F keyCode(evt: Event): Number

Returns the Unicode value of pressed key

public

F removeEvt(obj: DOMElement, type: String, Handler: Function, capture: Boolean)

Remove event handler for specified event on passed element

public

F stopEvt(evt: Event)

Prevents further propagation of the current event in the bubbling phase

public

F targetEvt(evt: Event): DOMElement

Reference to the object that dispatched the event

public

F parse(Formatted: String, Decimal: String): Number

Takes a string, removes all formatting/cruft and returns the raw float value

public

F defaultsArr(value: Array | Any, default: Array): Array | Any

If passed value is not of array type return the default value otherwise return the value itself

public

F defaultsBool(value: Boolean | Any, default: Boolean): Boolean | Any

If passed value is not of boolean type return the default value otherwise return the value itself

public

F defaultsFn(value: Function | Any, default: Function): Function | Any

If passed value is not of function type return the default value otherwise return the value itself

public

F defaultsNb(value: Number | Any, default: Number): Number | Any

If passed value is not of number type return the default value otherwise return the value itself

public

F defaultsStr(value: String | Any, default: String): String | Any

If passed value is not of string type return the default value otherwise return the value itself

public

F dateSortAsc(First: Date, Second: Date): Number

Compare function for sorting passed dates in ascending manner according to the corresponding UTC numeric value (returned by getTime)

public

F dateSortDesc(First: Date, Second: Date): Number

Compare function for sorting passed dates in descending manner according to the corresponding UTC numeric value (returned by getTime)

public

F ignoreCase(First: String, Second: String): Number

Case insensitive compare function for passed strings

public

F numSortAsc(First: Number, Second: Number): Number

Compare function for sorting passed numbers in ascending manner

public

F numSortDesc(First: Number, Second: Number): Number

Compare function for sorting passed numbers in descending manner

public

F sortDateStr(Compare: Function, locale: String): Function

Curried compare function for sorting passed formatted dates in desired fashion according to supplied compare function and locale

public

F sortNumberStr(Compare: Function, decimal: String): Function

Curried compare function for sorting passed formatted numbers in desired fashion according to supplied compare function and decimal separator

public

F contains(term: String, data: String, exactMatch: Boolean, caseSensitive: Boolean, ignoreDiacritics: Boolean): Boolean

Checks if passed data contains the searched term

public

F isEmpty(text: String): Boolean

Checks if passed string is empty

public

F matchCase(text: String): String

Returns passed string as lowercase if caseSensitive flag set false.

public

F rgxEsc(text: String): String

Makes regex safe string by escaping special characters from passed string

public

F trim(text: String): String

Removes whitespace from both sides of passed string

public

Return an empty function

public

F isArray(obj: Array): Boolean

Check passed argument is an array

public

Check passed argument is a boolean

public

F isEmpty(obj: Any): Boolean

Check passed argument is empty (undefined, null or empty string)

public

F isFn(obj: Function): Boolean

Check passed argument is a function

public

F isNull(obj: Any): Boolean

Check passed argument is null

public

Check passed argument is a number

public

F isObj(obj: Object): Boolean

Check passed argument is an object

public

Check passed argument is a string

public

F isUndef(obj: Any): Boolean

Check passed argument is undefined

public

Auto filter delay in milliseconds

public

Cell tag

public

Checklist filter type

public

Date

public

Down arrow key code

public

Enter key code

public

Escape key code

public

TableFilter features definitions

public

Formatted number

public

Header cell tag

public

Input filter type

public

IP address

public

Multiple select filter type

public

None filter type

public

Number

public

Select filter type

public

String

public

Tab key code

public

Up arrow key code

public

V root: *

Export window or global object depending on the environment

extensions/advancedGrid

summary
public

Adapter module for ezEditTable, an external library providing advanced grid features (selection and edition): http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123?ref=koalyptus

extensions/colOps

summary
public

C ColOps

Column calculations extension

extensions/colsVisibility

summary
public

Columns Visibility extension

extensions/filtersVisibility

summary
public

Filters Visibility extension

extensions/sort

summary
public

SortableTable Adapter module

modules

summary
public

Rows with alternating background color for improved readability

public

Base class for Dropdown and CheckList UI components

public

Checklist filter UI component

public

Clear button UI component

public

Wrapper for Sugar Date module providing datetime helpers and locales

public

Dropdown filter UI component

public

Grid layout, table with fixed headers

public

C Hash

Manages state via URL hash changes

public

C Help

Help UI component

public

Highlight matched keywords upon filtering

public

C Loader

Activity indicator

public

Visual indicator for filtered columns

public

UI when filtering yields no matches

public

C Paging

Paging UI component

public

Pop-up filter component

public

Rows counter UI component

public

C State

Features state object persistable with localStorage, cookie or URL hash

public

Status bar UI component

public

Stores the features state in browser's local storage or cookie

public

Toolbar UI component

public

F hasHashChange(): *

Checks if browser has onhashchange event

public

F hasStorage(): *

Checks if browser has Storage feature

public

Center position in toolbar

public

Left position in toolbar

public

Right position in toolbar