Constructor
new Rest()
A rest api datasource
the constructor of the class
- Copyright
- schukai GmbH
Members
defaults
data-monster-options
must be used.To set the options via the html tag the attribute data-monster-options
must be used.
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
templates | Object | Template definitions Properties
| ||||||||||||||||||||||||
features | Object | Feature definitions Properties
| ||||||||||||||||||||||||
autoInit | Object | Auto init definitions Properties
| ||||||||||||||||||||||||
filter | Object | Filter definitions Properties
| ||||||||||||||||||||||||
datatable | Object | Datatable definitions Properties
| ||||||||||||||||||||||||
response | Object | Response definitions Properties
| ||||||||||||||||||||||||
read | Object | Read configuration Properties
| ||||||||||||||||||||||||
write | Object | Write configuration |
- See
- https://monsterjs.org/en/doc/#configurate-a-monster-control The individual configuration values can be found in the table.
(static) instanceSymbol
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
- Type:
- Promise.<never> |
*
initIntersectionObserver() → {Monster.Components.Datatable.Datasource.Rest}
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
- Type:
- Promise.<never> |
*
setParameters(page, query, orderBy) → {Monster.Components.Datatable.Datasource.Rest}
Name | Type | Description |
---|---|---|
page | string | |
query | string | |
orderBy | string |
write() → {Promise.<never>|*}
Fetches the data from the rest api
.Fetches the data from the rest api
- Type:
- Promise.<never> |
*
(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}
- Type:
- Array.<CSSStyleSheet>