mendix-data-source-helper
v0.1.2-rc2
Published
Mendix widget data source helper
Downloads
6
Readme
data-source-helper
The Mendix widget data source helper module assists with applying multiple restrictions (coming from custom widgets ) onto the mendix data containers (eg: list-view)
#Usage.
- Install as npm module.
npm install --save mendix-data-source-helper
- Import
DataSourceHelper
into your component.
import DataSourceHelper from "DataSourceHelper"
- Initialize the dataSourceHelper once you have a listview
try {
this.dataSourceHelper = new DataSourceHelper(targetNode, ListView, this.props.friendlyId, DataSourceHelper.VERSION)
} catch (error) {
console.error(error.message)
}
- To blur any html content from initially displaying.
DataSourceHelper.hideContent(htmlNode);
- To show (unblur) content
DataSourceHelper.showContent(htmlNode);