widget-iccandle 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/selector-widget.cjs +8 -8
- package/dist/selector-widget.js +1093 -1090
- package/dist/services/data-feed-services.d.ts +3 -9
- package/dist/services/data-feed-services.d.ts.map +1 -1
- package/dist/tradingview/TradingviewChart.d.ts.map +1 -1
- package/dist/tradingview/scanner-popup.d.ts +1 -2
- package/dist/tradingview/scanner-popup.d.ts.map +1 -1
- package/dist/tradingview/selector-widget.d.ts +1 -2
- package/dist/tradingview/selector-widget.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ React components for the TradingView Charting Library: chart wrapper and selecto
|
|
|
12
12
|
| ---------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
13
13
|
| `chartWidget` | `IChartingLibraryWidget \| null` | The TradingView chart widget instance (from the charting library). |
|
|
14
14
|
| `children` | `ReactNode` | Content rendered above the scanner UI (e.g. the chart container). |
|
|
15
|
-
| `submitCallback` | `(params: RequestPattern) => void` | Called when the user submits from the scanner (receives the request pattern for the selected range). |
|
|
15
|
+
| `submitCallback` | `(params: RequestPattern, embeddedUrl: string) => void` | Called when the user submits from the scanner (receives the request pattern and an embedded plugin URL for the selected range). |
|
|
16
16
|
|
|
17
17
|
### Usage
|
|
18
18
|
|
|
@@ -24,8 +24,8 @@ function ChartWithScanner() {
|
|
|
24
24
|
null,
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
const handleSubmit = (params: RequestPattern) => {
|
|
28
|
-
// Handle scanner submit (e.g. fetch candles for the selected range)
|
|
27
|
+
const handleSubmit = (params: RequestPattern, embeddedUrl: string) => {
|
|
28
|
+
// Handle scanner submit (e.g. fetch candles for the selected range; use embeddedUrl to open or share the plugin view)
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
return (
|