Monster.Components.Datatable.Datasource. Rest

The Datasource component is a basic class for the datatable component.

Dependencies: the system uses functions of the monsterjs library

Constructor

new Rest()

A rest api datasource

the constructor of the class

Members

defaults

To set the options via the html tag the attribute data-monster-options must be used.

To set the options via the html tag the attribute data-monster-options must be used.

Properties
NameTypeDescription
templatesObject

Template definitions

Properties
NameTypeDescription
mainstring

Main template

featuresObject

Feature definitions

Properties
NameTypeDescription
autoInitboolean

If true, the component is initialized automatically

filterboolean

If true, the component is initialized automatically

autoInitObject

Auto init definitions

Properties
NameTypeDescription
intersectionObserverboolean

If true, the intersection observer is initialized automatically

oneTimeboolean

If true, the intersection observer is initialized only once

filterObject

Filter definitions

Properties
NameTypeDescription
idstring

The id of the filter control

datatableObject

Datatable definitions

Properties
NameTypeDescription
idstring

The id of the datatable control

responseObject

Response definitions

Properties
NameTypeDescription
pathObject

Path definitions (changed in 3.56.0)

Properties
NameTypeDescription
messagestring

Path to the message (changed in 3.56.0)

readObject

Read configuration

Properties
NameTypeDescription
urlstring

The url of the rest api

methodstring

The method of the rest api

parametersObject

The parameters of the rest api

Properties
NameTypeDescription
filterObject

The filter of the rest api

orderByObject

The order by of the rest api

pageObject

The page of the rest api

writeObject

Write configuration

See

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Methods

assembleMethodSymbol() → {Monster.Components.Form.Form}

fetch() → {Promise.<never>|*}

Fetches the data from the rest api

.

Fetches the data from the rest api

Returns:
Type: 
Promise.<never> | *

initIntersectionObserver() → {Monster.Components.Datatable.Datasource.Rest}

This method activates the intersection observer manually.

This method activates the intersection observer manually. For this purpose, the option autoInit.intersectionObserver must be set to false.

reload() → {Promise.<never>|*}

Deprecated
  • 2023-06-25
Returns:
Type: 
Promise.<never> | *

setParameters(page, query, orderBy) → {Monster.Components.Datatable.Datasource.Rest}

Parameters:
NameTypeDescription
pagestring
querystring
orderBystring

write() → {Promise.<never>|*}

Fetches the data from the rest api

.

Fetches the data from the rest api

Returns:
Type: 
Promise.<never> | *

(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}

Returns:
Type: 
Array.<CSSStyleSheet>