Home Reference Source
import {Loader} from 'tablefilter/src/modules/loader.js'
public class | source

Loader

Extends:

Feature → Loader

Activity indicator

Constructor Summary

Public Constructor
public

Creates an instance of Loader.

Member Summary

Public Members
public

Close delay in milliseconds

public

cont: DOMElement

Loader container DOM element

public

Css class for Loader's container element

public

Custom HTML injected in Loader's container element

public
public

Callback fired when loader is closed

public

Callback fired when loader is displayed

public

ID of custom container element

public

Text displayed when indicator is visible

Method Summary

Public Methods
public

Removes feature

public

init()

Initializes Loader instance

public

show(Two: String)

Shows or hides activity indicator

Inherited Summary

From class Feature
public

TableFilter configuration

public

TableFilter emitter instance

public

TableFilter feature setting

public

Feature name

public

Field indicating whether Feature is initialized

public

TableFilter instance

public

Destroy the feature

public

Disable the feature

public

enable()

Enable the feature

public

init()

Initialize the feature

public

Indicate whether the feature is enabled or not

public

reset()

Reset the feature after being disabled

Public Constructors

public constructor(tf: TableFilter) source

Creates an instance of Loader.

Override:

Feature#constructor

Params:

NameTypeAttributeDescription
tf TableFilter

TableFilter instance

Public Members

public closeDelay: Number source

Close delay in milliseconds

public cont: DOMElement source

Loader container DOM element

public cssClass: String source

Css class for Loader's container element

public html: String source

Custom HTML injected in Loader's container element

public initialized: boolean source

Field indicating whether Feature is initialized

Override:

Feature#initialized

public onHide: Function source

Callback fired when loader is closed

public onShow: Function source

Callback fired when loader is displayed

public targetId: String source

ID of custom container element

public text: String source

Text displayed when indicator is visible

Public Methods

public destroy() source

Removes feature

Override:

Feature#destroy

public init() source

Initializes Loader instance

Override:

Feature#init

public show(Two: String) source

Shows or hides activity indicator

Params:

NameTypeAttributeDescription
Two String

possible values: '' or 'none'