Comments (2)
Please include repro code for developers to reproduce this issue.
from reflex.
Hello @masenf
I think, this code will help.
import reflex as rx
class State(rx.State):
"""The app state."""
open_dialog : bool = False
selected : str = "Red003"
select_list : list[str] = ["Red001","Red002","Red003",
"Red004","Red005",
"Red006","Red007",
"Red008","Red009",
"Red010","Red011",
"Red012","Red013",
"Red014","Red015",
"Red016","Red017",
"Red018","Red019",
"Red020",]
def change_open_dialog(self):
self.open_dialog = not self.open_dialog
def index():
return rx.center(
rx.dialog.root(
rx.dialog.content(
rx.dialog.title("Welcome to Reflex!"),
rx.flex(
rx.text("Select"),
rx.select(
State.select_list,
value=State.selected),
direction="column",
spacing="2"
),
rx.dialog.close(
rx.button("Close Dialog", size="3", on_click=State.change_open_dialog),
),
),
open=State.open_dialog
),
rx.button("Open Dialog", on_click=State.change_open_dialog),
)
from reflex.
Related Issues (20)
- rx.recharts.label_list not display when I set fill and stroke parameters HOT 1
- Vertical orientation on tabs doesn't work HOT 2
- state.js processEvent hang when eventSent then network disconnect HOT 1
- I can't change width on popover HOT 3
- Wrap Segmented Control Radix (New Component) HOT 1
- Wrap Radix Radio Cards (New Component) HOT 2
- Wrap Checkbox Group Radix (New Component) HOT 2
- Wrap Radio Group Radix (New Component) HOT 3
- 404 with recomplilation when working on routes HOT 2
- Can Reflex deal with some state/components running in subprocesses? HOT 5
- Problems submitting additional information via rx.form HOT 1
- [REF-3004] postcss-import causes regression using local stylesheets
- [REF-3006] Inline code rendered in `rx.markdown` has extra trailing space
- [REF-3010] Cannot access rx.color (and others) without first accessing rx.Component
- [REF-3011] Hash in URL does not jump to anchor defined in markdown
- [REF-3013] pyi_generator should not operate on changed files outside of `reflex/components`
- Cannot render states with typing.ForwardRef HOT 3
- [REF-3014] Bug in serializing lists/dict of `rx.Base` HOT 11
- [REF-3016] Upload ID should allow characters HOT 1
- [REF-3078] Make .web folder configurable via env. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflex.