VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

Option for input text #185

Closed ashish-y closed 1 year ago

ashish-y commented 1 year ago

Hi,

I'm trying to use grafana for a dynamic form. I've already looked at the data manipulation plugin but I believe that plugin can't have dynamic form elements. For example: On select of a drop down, a new input box should appear in the same form.

So I'm looking into dynamic text but the input tag is not supported. Is there any future plans to support HTML input form elements? Any other recommendations?

Thanks

mikhail-vl commented 1 year ago

@ashish-y Input tag may be sanitized: https://volkovlabs.io/plugins/volkovlabs-dynamictext-panel/content/#sanitizing Could you please try and let me know.

Data Manipulation can load the options or elements from the data source dynamically, but they are not controlled by selection. We can look into adding it.

ashish-y commented 1 year ago

Thanks @mikhail-vl ,

Setting up sanitization made the input tags to work. Unfortunately, we won't be able to use this in production so looking for better options.

mikhail-vl commented 1 year ago

@ashish-y Sanitizing is the only option to enable input tags in the Dynamic Text.

As I mentioned, we can add form element dependencies in the Data Manipulation panel. Please open an issue if you are interested.