Thanks - Then how can parameters in the parameter-list be filtered? I have some parameters in the parameter-list that only apply to certain types of devices - I am unsure as to how to make those parameters only appear for those devices. Can I put a parameter-list inside a container somehow (or vice versa)?
This replaces the default component (i.e. parameter) that is used to render each individual value. It replaces it with a container component with which you can use the filter property. The parameter-list component will then skip any item that renders nothing.
I should’ve mentioned this solution in my previous answer but oddly enough it didn’t occur to me until you asked a direct how question
Any similar way that an entire parameter-table could be hidden? For instance, there is the hosts table that doesn’t really apply to devices that aren’t routers - so if the device is not a router, there is a useless “hosts” table that will always be empty taking up vertical space on the device page.
That works, thanks! Why is that different from Filters for device page fields - #4 by zaidka where the parameter property is at the top level? I wasn’t entirely sure why the parameter property was at the top level there and why it is in the parameter-level component in this case.
In the case of parameter-list, the child components are “contextified” so the parameter arg automatically propagates to the subcomponents. The container component doesn’t do that because it’s just a wrapper and doesn’t add any context to its subcomponents. Hope that makes some kind of sense…
Yes, that does make sense, thanks! I figured with your original response that there was some kind of inheritance involved regarding propagation of settings to the lower levels. So in that case, I assume it might also work as shown in my last post? Or is the solution in post 4 the only one that would work for that?