GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

hiddenElements

Home > @gooddata/sdk-ui-filters > IAttributeFilterCoreProps > hiddenElements

IAttributeFilterCoreProps.hiddenElements property

If specified, these will be excluded from the elements available for selection and will also be removed from the resulting filter. This effectively behaves as if those elements were not part of the underlying display form.

Signature:

hiddenElements?: string[];

Remarks

The meaning of the items is determined by the way the filter is specified: if the filter uses URIs, then these are also interpreted as URIs, analogously with values.

If using hiddenElements, make sure your input filter excludes the hidden elements, otherwise it could lead to non-intuitive behavior. So, for positive filters, make sure their elements do NOT contain any of the hiddenElements. Inversely for negative filters, make sure their elements do contain all of the hiddenElements.

Example

This is how to correctly create a filter that has some items hidden but is set to All:

const hiddenUris: ["uri1", "uri2"];
// make sure to use the uris both in the filter...
const filter = newNegativeAttributeFilter("displayForm", { uris: hiddenUris });
// ...and also in the prop
return <AttributeFilter filter={filter} hiddenElements={hiddenUris} />
  • IAttributeFilterCoreProps.hiddenElements property
  • Remarks
  • Example
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use