NewsComponent
NewsComponent API
- NewsComponent.doActivate
- Returns
- void
NewsComponent.doActivate(): void
This method is used to activate a protected feature. It does not take any arguments and does not return anything.
- NewsComponent.getNewsCoordinate
- Parameters
- news: NewsPerCandle
- Returns
- Point
NewsComponent.getNewsCoordinate(news: NewsPerCandle): Point
- NewsComponent.onHover
- Parameters
- news: NewsPerCandle
- Returns
- void
NewsComponent.onHover(news: NewsPerCandle): void
- NewsComponent.onTouchStart
- Parameters
- news: NewsPerCandle
- Returns
- void
NewsComponent.onTouchStart(news: NewsPerCandle): void
- NewsComponent.getIdRange
- Returns
- [number, number]
NewsComponent.getIdRange(): [number, number]
- NewsComponent.lookup
- Parameters
- id: number
- Returns
- NewsPerCandle
NewsComponent.lookup(id: number): NewsPerCandle
- NewsComponent.setNews
- Parameters
- news: News[]
- Returns
- void
NewsComponent.setNews(news: News[]): void
Sets news to the chart
- NewsComponent.setVisible
- Parameters
- visible: boolean
- Returns
- void
NewsComponent.setVisible(visible: boolean): void
Changes the component visibility.
- NewsComponent.getNewsPerCandle
- Returns
- NewsPerCandle[]
NewsComponent.getNewsPerCandle(): NewsPerCandle[]