El widget de vista comercial funciona bien, excepto un parámetro allow_symbol_change: false,
. Intenté esto y no funciona en absoluto.
Código: -
const widgetOptions: ChartingLibraryWidgetOptions = { symbol: this.props.symbol as string, allow_symbol_change: false, datafeed: Datafeed, interval: this.props.interval as ChartingLibraryWidgetOptions['interval'], container: this.props.container as ChartingLibraryWidgetOptions['container'], library_path: this.props.libraryPath as string, locale: getLanguageFromURL() || 'en', disabled_features: ['use_localstorage_for_settings'], enabled_features: ['study_templates'], charts_storage_url: this.props.chartsStorageUrl, charts_storage_api_version: this.props.chartsStorageApiVersion, client_id: this.props.clientId, user_id: this.props.userId, fullscreen: this.props.fullscreen, autosize: this.props.autosize, theme: 'Dark', studies_overrides: this.props.studiesOverrides, timeframe: '1w', }
¿Hay algún otro método para esto también como disable_feature
Esto funcionó para mí.
disabled_features: ['use_localstorage_for_settings', 'header_symbol_search']