You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic users of Panel would not know how to write cond and intermediate user would have to write more boilerplate code.
Please add cond layout or in other ways make this more easy.
As a first step please confirm if a PR with functionality like this would be welcome and even better explain your requirements for a feature like this.
The text was updated successfully, but these errors were encountered:
Its still not as easy to comprehend though. But maybe its worth saying this is the feature we have to not implement more features? To make it work for a simple bool value you will have to wrap it with param.rx: param.rx(value).rx.where(...,...).
.rx.where is indeed what I'd use here. What we might be able to think about is to allow the rx object to create expressions via the namespace accessor directly, so instead of pn.rx(condition).rx.where(v1, v2) you can do pn.rx.where(condition, v1, v2).
React has ways to conditionally layout. Reflex has
rx.cond
too https://reflex.dev/docs/library/dynamic-rendering/cond/:With Panel we can also conditionally render. But we have to stop the layout process to write some wrapper code like
cond
below.Basic users of Panel would not know how to write
cond
and intermediate user would have to write more boilerplate code.Please add
cond
layout or in other ways make this more easy.As a first step please confirm if a PR with functionality like this would be welcome and even better explain your requirements for a feature like this.
The text was updated successfully, but these errors were encountered: