Front-end development on UI settings #477
Closed
Flix6x
started this conversation in
Qualification assignments
Replies: 1 comment
|
Attributes are now actually editable |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The task is to make one of the editable text fields on our asset page into a button activated modal.
Steps:
docker compose build) and run it (docker compose up), see our documentation here.toy-user@flexmeasures.io, password istoy-password), you should see the toy battery schedule.Other attributes (JSON), which is currently too small to fit the text. I'd like this to become a button that opens up a modal, in which the text field can be edited. For this, you should find the relevant place in the code where the asset page is defined (hint: we work on a UI template with CRUD functionality). Then make the change.sensors_to_showattribute to the JSON string in theOther attributes (JSON)field, with[3, 2]as its value, and save the asset, to see a second chart is loaded showing prices (from sensor 3) next to the battery charging (from sensor 2).Bonus: show the JSON string in the modal as a JSON accordion.
All reactions