# Featuresets

**Featureset** is a string literal that allows showing or hiding UI elements and changing the chart's behavior.

## How to use

To enable or disable a feature, include it in the [`enabled_features`] or [`disabled_features`] array of the [Widget Constructor] object.

```html
<script>
    new TradingView.widget({
        container: 'chartContainer',
        locale: 'en',
        library_path: 'charting_library/',
        datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
        symbol: 'AAPL',
        interval: '1D',
        // highlight-start
        enabled_features: ["show_spread_operators"],
        disabled_features: ["items_favoriting", "show_object_tree"]
        // highlight-end
    });
</script>
```

This code sample enables the spread operators in the [*Symbol search*] dialog
and disables [*Add to favorites*] and *show object tree* buttons in the UI.

## Simple and complex featuresets

Featuresets can be simple and complex where complex consists of the simple ones.
Note that disabling complex featureset disables all its simple parts as well.

In the table below, simple featuresets are nested within complex featuresets using indentation.

## Visibility of controls and visual elements

## Elements placement

## Behavior

## Trading Platform

:::info

These featuresets are only available in [Trading Platform](https://charting-library-docs.xstaging.tv/latest/trading_terminal.md).

:::

[*Add to favorites*]: https://charting-library-docs.xstaging.tv/latest/ui_elements/drawings.md#favorite-tools
[`disabled_features`]: https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#disabled_features
[`enabled_features`]: https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#enabled_features
[*Symbol Search*]: https://charting-library-docs.xstaging.tv/latest/ui_elements/Symbol-Search.md
[Widget Constructor]: https://charting-library-docs.xstaging.tv/latest/configuration/Widget-Constructor.md

---

## Sitemap

- [All documentation pages](https://charting-library-docs.xstaging.tv/llms.txt)
- [Full page map with headings](https://charting-library-docs.xstaging.tv/docs_map.md)
