Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@gooddata/gdc-afm-connect
Advanced tools
Readme
This package may help to build react-redux apps with GoodData.UI faster. Use at your own risk.
Install gdc-afm-connect yarn add '@gooddata/gdc-afm-connect'
Import AFM reducers and combine
import { createStore, combineReducers } from 'redux';
import { AfmReducers } from '@gooddata/gdc-afm-connect';
const configureStore = () => {
const store = createStore(
combineReducers({
...AfmReducers
})
);
return store;
};
Wrap regular components with afmConnect
import { ColumnChart as ColumnChartOrig } from '@gooddata/react-components';
import { afmConnect } from '@gooddata/gdc-afm-connect';
const ColumnChart = afmConnect(ColumnChartOrig);
<ColumnChart
projectId="<project-id"
filterGroup="<filter-group>"
measures="<measures>"
/>
Wrap AFM components with afmWrapper
import { AfmComponents } from '@gooddata/react-components';
import { afmWrapper } from '@gooddata/gdc-afm-connect';
const ColumnChart = afmWrapper(AfmComponents.ColumnChart);
<ColumnChart
projectId="<project-id"
filterGroup="<filter-group>"
afm="<afm>"
/>
❗️Please note that AFM components are being DEPRECATED. Use regular components as shown above.
UPDATE_POSITIVE_ATTRIBUTE_FILTER
updatePositiveAttributeFilter(
filterGroup: '<string>', // name of the filter group context
attributeDisplayForm: '<string>', // uri or identifier of attribute display form
inValues: '<array>' // array of attribute element uris
)
UPDATE_NEGATIVE_ATTRIBUTE_FILTER
updateNegativeAttributeFilter(
filterGroup: '<string>', // name of the filter group context
attributeDisplayForm: '<string>', // uri or identifier of attribute display form
notInValues: '<array>' // array of attribute element uris
)
REMOVE_ATTRIBUTE_FILTER
removeAttributeFilter(
filterGroup: '<string>', // name of the filter group context
attributeDisplayForm: '<string>' // uri or identifier of attribute display form
)
UPDATE_DATE_FILTER
updateDateFilter(
filterGroup: '<string>', // name of the filter group context
dataSet: '<string>', // uri or identifier of date display form
grain: '<string>', // date granularity, currently only 'GDC.time.date' is supported
start: '<string>', // start date, can be absolute (i.e. 'YYYY-MM-DD') or relative (e.g. 0)
end: '<string>' // end date, can be absolute (i.e. 'YYYY-MM-DD') or relative (e.g. -1)
)
REMOVE_DATE_FILTER
// TODO not yet implemented
yarn validate
yarn build
package.json
accordinglynpm publish --access=restricted
FAQs
GoodData.UI AFM Redux Connector
The npm package @gooddata/gdc-afm-connect receives a total of 3 weekly downloads. As such, @gooddata/gdc-afm-connect popularity was classified as not popular.
We found that @gooddata/gdc-afm-connect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 37 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.