How to use the @talend/react-cmf.expressions function in @talend/react-cmf

To help you get started, we’ve selected a few @talend/react-cmf 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 Talend / ui / packages / datagrid / stories / datagrid.container.js View on Github external
Object.keys(api.expressions).forEach(id => api.expression.register(id, api.expressions[id]));
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
registerRouteFunction(k, additionalRouteFunctions[k]),
			);
		}

		registerAllContainers();

		dataset.configure();

		/**
		 * Register expressions in CMF expressions dictionary
		 */
		const additionalExpressions = additionalConfiguration.expressions;
		if (additionalExpressions) {
			registerExpressions(additionalExpressions);
		}
		registerExpressions(api.expressions);

		/**
		 * Register components in CMF Components dictionary
		 */
		registerComponent('App', App);
		registerComponents(components);
		const additionalComponents = additionalConfiguration.components;
		if (additionalComponents) {
			registerComponents(additionalComponents);
		}

		/**
		 * Register action creators in CMF Actions dictionary
		 */
		registerActionCreator('preparation:edit:submit', actions.preparation.rename);
		registerActionCreator('preparation:edit:cancel', actions.preparation.cancelRename);
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
registerRouteFunction(k, additionalRouteFunctions[k]),
		);
	}

	registerAllContainers();

	dataset.configure();

	/**
	 * Register expressions in CMF expressions dictionary
	 */
	const additionalExpressions = additionalConfiguration.expressions;
	if (additionalExpressions) {
		registerExpressions(additionalExpressions);
	}
	registerExpressions(api.expressions);

	/**
	 * Register components in CMF Components dictionary
	 */
	registerComponent('App', App);
	registerComponents(components);
	const additionalComponents = additionalConfiguration.components;
	if (additionalComponents) {
		registerComponents(additionalComponents);
	}

	/**
	 * Register action creators in CMF Actions dictionary
	 */
	registerActionCreator('preparation:edit:submit', actions.preparation.rename);
	registerActionCreator('preparation:edit:cancel', actions.preparation.cancelRename);