Background I have a django app that I want to create an admin widget for. The widget will display text in a particular way (like a terminal). It’s so that app admins can see forwarded logs from an analytics process that is orchestrated by django (the app is django-twined). To do that I want to use something like terminal-kit or
Tag: widget
Get access to other elements from widget inside form view
Odoo 13. I got two float fields: time_given and timer. I have created a widget for ‘timer’ field. My widget works as real-time clock or some sort of timer. The problem I have encountered is that I want to change the style of ‘time_given’ field based on the following condition: ((time_given – timer) <= 30 sec) i.e less than 30
How to dynamically change Django Form field type (e.g. `forms.CharField` to `forms.ChoiceField`) without changing the data member variable?
TL;DR How can I change the search term CharField (of any of the rows in the image below) to another field type (e.g. ChoiceField, DateField, etc) based on the type of the selected database field (in the first select list on that row – see screenshot below)? Long version I have a cool hierarchical advanced search interface, e.g.: Each row
ThingsBoard change background color of simple card widget element dynamically
In my ThingsBoard dashboard i have a simple card widget element. I want to change the background color of this element dynamically regarding of the value that is sent. Does anyone know how to implement this behavior? Thank you very much. Answer You will need to create a custom widget to do this. You can just save the simple card
Get two properties at runtime and make combination of those two properties in string (orderby orderdirection)
I have two properties “orderby” and “orderdirection” in widget. In runtime I can adjust those properties check snip : I want to set these properties in my rest api query. eg: Query = “/_api/web/lists/getbytitle(‘” + listname + “‘)/items?&”$select=ID,Title,Date&$orderby=Title desc,Date asc” Above values are hardcoded but I want to change those values in runtime. When I want to update just one