How to use the @appbaseio/reactivemaps.TYPES function in @appbaseio/reactivemaps

To help you get started, we’ve selected a few @appbaseio/reactivemaps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appbaseio / reactivesearch / lib / sensors / MultiLevelMenu.js View on Github external
maxItems: 4,
	style: {}
};

// context type
MultiLevelMenu.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired
};

MultiLevelMenu.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.ARRAY,
	dataFieldType: _reactivemaps.TYPES.STRING,
	react: _reactivemaps.TYPES.OBJECT,
	maxCategories: _reactivemaps.TYPES.NUMBER,
	maxItems: _reactivemaps.TYPES.NUMBER,
	blacklist: _reactivemaps.TYPES.ARRAY,
	data: _reactivemaps.TYPES.OBJECT,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	className: _reactivemaps.TYPES.STRING,
	onQueryChange: _reactivemaps.TYPES.FUNCTION
};
github appbaseio / reactivesearch / lib / sensors / ToggleList.js View on Github external
multiSelect: true,
	componentStyle: {},
	URLParams: false,
	showFilter: true
};

// context type
ToggleList.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired,
	reactiveId: _react2.default.PropTypes.number
};

ToggleList.types = {
	componentId: _reactivemaps.TYPES.STRING,
	appbaseField: _reactivemaps.TYPES.STRING,
	appbaseFieldType: _reactivemaps.TYPES.KEYWORD,
	title: _reactivemaps.TYPES.STRING,
	data: _reactivemaps.TYPES.OBJECT,
	defaultSelected: _reactivemaps.TYPES.ARRAY,
	multiSelect: _reactivemaps.TYPES.BOOLEAN,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING
};
github appbaseio / reactivesearch / lib / sensors / CategorySearch.js View on Github external
highlight: false,
	style: {},
	URLParams: false,
	showFilter: true,
	queryFormat: "or"
};

// context type
CategorySearch.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired,
	reactiveId: _react2.default.PropTypes.number
};

CategorySearch.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.STRING,
	dataFieldType: _reactivemaps.TYPES.KEYWORD,
	react: _reactivemaps.TYPES.OBJECT,
	title: _reactivemaps.TYPES.STRING,
	categoryField: _reactivemaps.TYPES.STRING,
	placeholder: _reactivemaps.TYPES.STRING,
	autoSuggest: _reactivemaps.TYPES.BOOLEAN,
	defaultSelected: _reactivemaps.TYPES.STRING,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	highlight: _reactivemaps.TYPES.BOOLEAN,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING,
	weights: _reactivemaps.TYPES.ARRAY,
	queryFormat: _reactivemaps.TYPES.STRING,
	fuzziness: _reactivemaps.TYPES.NUMBER,
github appbaseio / reactivesearch / lib / sensors / RatingsFilter.js View on Github external
RatingsFilter.defaultProps = {
	title: null,
	style: {},
	URLParams: false,
	showFilter: true
};

// context type
RatingsFilter.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired,
	reactiveId: _react2.default.PropTypes.number
};

RatingsFilter.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.STRING,
	dataFieldType: _reactivemaps.TYPES.NUMBER,
	title: _reactivemaps.TYPES.STRING,
	data: _reactivemaps.TYPES.OBJECT,
	defaultSelected: _reactivemaps.TYPES.OBJECT,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING,
	className: _reactivemaps.TYPES.STRING,
	onQueryChange: _reactivemaps.TYPES.FUNCTION
};
github appbaseio / reactivesearch / lib / sensors / NestedMultiList.js View on Github external
placeholder: "Search",
	style: {},
	URLParams: false,
	showFilter: true,
	showCheckbox: true
};

// context type
NestedMultiList.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired,
	reactiveId: _react2.default.PropTypes.number
};

NestedMultiList.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.ARRAY,
	dataFieldType: _reactivemaps.TYPES.STRING,
	title: _reactivemaps.TYPES.STRING,
	placeholder: _reactivemaps.TYPES.STRING,
	react: _reactivemaps.TYPES.OBJECT,
	size: _reactivemaps.TYPES.NUMBER,
	sortBy: _reactivemaps.TYPES.STRING,
	showCount: _reactivemaps.TYPES.BOOLEAN,
	showSearch: _reactivemaps.TYPES.BOOLEAN,
	defaultSelected: _reactivemaps.TYPES.ARRAY,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	initialLoader: _reactivemaps.TYPES.OBJECT,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING,
	showCheckbox: _reactivemaps.TYPES.BOOLEAN,
github appbaseio / reactivesearch / lib / actuators / ResultCard.js View on Github external
ResultCard.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired
};

ResultCard.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.STRING,
	title: _reactivemaps.TYPES.STRING,
	react: _reactivemaps.TYPES.OBJECT,
	sortBy: _reactivemaps.TYPES.STRING,
	sortOptions: _reactivemaps.TYPES.OBJECT,
	from: _reactivemaps.TYPES.NUMBER,
	onData: _reactivemaps.TYPES.FUNCTION,
	onQueryChange: _reactivemaps.TYPES.FUNCTION,
	size: _reactivemaps.TYPES.NUMBER,
	pagination: _reactivemaps.TYPES.BOOLEAN,
	paginationAt: _reactivemaps.TYPES.STRING,
	stream: _reactivemaps.TYPES.BOOLEAN,
	style: _reactivemaps.TYPES.OBJECT,
	initialLoader: _reactivemaps.TYPES.STRING,
	noResults: _reactivemaps.TYPES.FUNC,
	showResultStats: _reactivemaps.TYPES.BOOLEAN,
	onResultStats: _reactivemaps.TYPES.FUNCTION,
	placeholder: _reactivemaps.TYPES.STRING,
	scrollOnTarget: _reactivemaps.TYPES.OBJECT,
	pages: _reactivemaps.TYPES.NUMBER,
	pageURLParams: _reactivemaps.TYPES.BOOLEAN,
	className: _reactivemaps.TYPES.STRING
};
github appbaseio / reactivesearch / lib / actuators / ResultCard.js View on Github external
pagination: true,
	paginationAt: "bottom",
	stream: false,
	style: {},
	showResultStats: true,
	pages: 5,
	pageURLParams: false
};

ResultCard.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired
};

ResultCard.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.STRING,
	title: _reactivemaps.TYPES.STRING,
	react: _reactivemaps.TYPES.OBJECT,
	sortBy: _reactivemaps.TYPES.STRING,
	sortOptions: _reactivemaps.TYPES.OBJECT,
	from: _reactivemaps.TYPES.NUMBER,
	onData: _reactivemaps.TYPES.FUNCTION,
	onQueryChange: _reactivemaps.TYPES.FUNCTION,
	size: _reactivemaps.TYPES.NUMBER,
	pagination: _reactivemaps.TYPES.BOOLEAN,
	paginationAt: _reactivemaps.TYPES.STRING,
	stream: _reactivemaps.TYPES.BOOLEAN,
	style: _reactivemaps.TYPES.OBJECT,
	initialLoader: _reactivemaps.TYPES.STRING,
	noResults: _reactivemaps.TYPES.FUNC,
	showResultStats: _reactivemaps.TYPES.BOOLEAN,
github appbaseio / reactivesearch / lib / sensors / TagCloud.js View on Github external
appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired,
	reactiveId: _react2.default.PropTypes.number
};

TagCloud.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.STRING,
	dataFieldType: _reactivemaps.TYPES.KEYWORD,
	title: _reactivemaps.TYPES.STRING,
	size: _reactivemaps.TYPES.NUMBER,
	showCount: _reactivemaps.TYPES.BOOLEAN,
	multiSelect: _reactivemaps.TYPES.BOOLEAN,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	initialLoader: _reactivemaps.TYPES.STRING,
	defaultSelected: _reactivemaps.TYPES.STRING,
	react: _reactivemaps.TYPES.OBJECT,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING,
	className: _reactivemaps.TYPES.STRING,
	onQueryChange: _reactivemaps.TYPES.FUNCTION
};
github appbaseio / reactivesearch / lib / sensors / CategorySearch.js View on Github external
CategorySearch.contextTypes = {
	appbaseRef: _react2.default.PropTypes.any.isRequired,
	type: _react2.default.PropTypes.any.isRequired,
	reactiveId: _react2.default.PropTypes.number
};

CategorySearch.types = {
	componentId: _reactivemaps.TYPES.STRING,
	dataField: _reactivemaps.TYPES.STRING,
	dataFieldType: _reactivemaps.TYPES.KEYWORD,
	react: _reactivemaps.TYPES.OBJECT,
	title: _reactivemaps.TYPES.STRING,
	categoryField: _reactivemaps.TYPES.STRING,
	placeholder: _reactivemaps.TYPES.STRING,
	autoSuggest: _reactivemaps.TYPES.BOOLEAN,
	defaultSelected: _reactivemaps.TYPES.STRING,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	highlight: _reactivemaps.TYPES.BOOLEAN,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING,
	weights: _reactivemaps.TYPES.ARRAY,
	queryFormat: _reactivemaps.TYPES.STRING,
	fuzziness: _reactivemaps.TYPES.NUMBER,
	className: _reactivemaps.TYPES.STRING,
	onBlur: _reactivemaps.TYPES.FUNCTION,
	onFocus: _reactivemaps.TYPES.FUNCTION,
	onKeyPress: _reactivemaps.TYPES.FUNCTION,
	onKeyDown: _reactivemaps.TYPES.FUNCTION,
	onKeyUp: _reactivemaps.TYPES.FUNCTION,
	onQueryChange: _reactivemaps.TYPES.FUNCTION
};
github appbaseio / reactivesearch / lib / sensors / NestedMultiList.js View on Github external
dataField: _reactivemaps.TYPES.ARRAY,
	dataFieldType: _reactivemaps.TYPES.STRING,
	title: _reactivemaps.TYPES.STRING,
	placeholder: _reactivemaps.TYPES.STRING,
	react: _reactivemaps.TYPES.OBJECT,
	size: _reactivemaps.TYPES.NUMBER,
	sortBy: _reactivemaps.TYPES.STRING,
	showCount: _reactivemaps.TYPES.BOOLEAN,
	showSearch: _reactivemaps.TYPES.BOOLEAN,
	defaultSelected: _reactivemaps.TYPES.ARRAY,
	customQuery: _reactivemaps.TYPES.FUNCTION,
	initialLoader: _reactivemaps.TYPES.OBJECT,
	URLParams: _reactivemaps.TYPES.BOOLEAN,
	showFilter: _reactivemaps.TYPES.BOOLEAN,
	filterLabel: _reactivemaps.TYPES.STRING,
	showCheckbox: _reactivemaps.TYPES.BOOLEAN,
	className: _reactivemaps.TYPES.STRING,
	onQueryChange: _reactivemaps.TYPES.FUNCTION
};