I can’t edit the yaml code of a view in a dashboard. I can edit the code of a card or the whole dashboard (raw view). I had plenty of moments i wished to be able to just edit the code of one singe view.
It’s a huge pain to spot it in the raw view if you have a lot of views in it
You can do it.
Set edit mode, press in the pencil icon of the view, 3 dots, edit yaml.
This opens the editor to edit the yaml for the whole dashboard not just the view.
Could you double check? I tried it now but cant find any other option than editing the entire dashboard yaml.
just a suggestion;
if you like YAML, why not use current functionality to have both YAML and GUI dashboard?
You can separate dashboards in a file each, then !include each view-file in each dashboard, and even have cards as separate files and !include in whatever view(s) you want.
I develop in GUI to see the visual side, then copy yaml to separate files for prod, using !include to re-use cards
That’s actuality a nice way.
Thanks for sharing.
But not sure, if its the right way at the moment for me.
I’m trying to keep it more simple in my new home. Also i want my kids to later be able to change their dashboards/view by themselves.
My WTH Moment is just, that it would be very easy to have in the 3 dots menu beside the raw editor also an option for only the view.
But thanks again for your input.
As MiguelAngelLV mentioned earlier it is currently possible.
- go into edit mode on the dashboard
- once in edit mode a pencil icon appears next to the icon or name of the view in the view tab bar at top. Click on the pencil icon.
- this opens the view edit options. You will see another 3 dot menu in this popup in the upper right hand corner, click the three dots to open the menu.
- click on edit in YAML. This will bring up the editor with just the YAML for that view.
Hope that helps.
@MiguelAngelLV is correct.
- Click the pencil icon in the top-right corner to enter edit mode
- Click the pencil icon next to the view you want to edit the YAML of
- In the dialog that appears (“ View Configuration”), click the three dots in the top-right corner of the dialog
- Click “Edit in YAML”
You now have just that view in YAML (not the whole dashboard).
Damn… I’m so stupid! I haven’t found that submenue in years!
Thank you so much takeing your time to explain it!
Greatful regards,
Robin