D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
panel
/
news
/
Filename :
module.tsx
back
Copy
import { PanelPlugin } from '@grafana/data'; import { NewsPanel } from './NewsPanel'; import { DEFAULT_FEED_URL } from './constants'; import { Options, defaultOptions } from './panelcfg.gen'; export const plugin = new PanelPlugin<Options>(NewsPanel).setPanelOptions((builder) => { builder .addTextInput({ path: 'feedUrl', name: 'URL', description: 'Supports RSS and Atom feeds', settings: { placeholder: DEFAULT_FEED_URL, }, defaultValue: defaultOptions.feedUrl, }) .addBooleanSwitch({ path: 'showImage', name: 'Show image', description: 'Controls if the news item social (og:image) image is shown above text content', defaultValue: defaultOptions.showImage, }); });