Static Dock Changes

Hello All,
After spending two days trying to get something to work, I have come up empty. I have a dock view that is attached to every view I have created, via 'Shared Settings'. I am trying to make it so the information within the dock updates based on the view that is open.

I currently have an embedded view with a label component that is acting a title for the view that is currently open but I cannot get it to change when I change views.

Thanks in advance for any help!

What have you tried so far to make it change for each view? Are you trying to just have it display the view name as it appears in the designer tree or do you have custom names?

In general, you can get the currently displayed view's path (as it appears in the designer) by using a binding of {page.props.path}

Thanks for the response Ryan.

I have tried different combinations of parameters and scripts based off some previous posts I've found but nothing has worked. I am pretty raw in python code.

Yes, I am basically just looking to use the names within the designer tree but am open to any suggestion if there is a solution.

I did try the {page.props.path} but it only gives me a / no matter what view I go to on a browser.

Actually, I think now I figured it out. I realized after what you mentioned I didn't have names for the paths on the page configuration.

Thanks Ryan!

There is also a Title parameter available when you configure a page. You can access this via {page.props.title}. That might work better if you want a custom name on a page.

1 Like