0.1.2-rc2 • Published 7 years ago

mendix-data-source-helper v0.1.2-rc2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

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);