We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa3f655 commit b70ea01Copy full SHA for b70ea01
nba/nba/views/table.py
@@ -17,6 +17,16 @@ class State(rx.State):
17
age: tuple[int, int] = (18, 50)
18
salary: tuple[int, int] = (0, 25000000)
19
20
+ @rx.event
21
+ def set_position(self, position: str) -> None:
22
+ """Set the position filter."""
23
+ self.position = position
24
+
25
26
+ def set_college(self, college: str) -> None:
27
+ """Set the college filter."""
28
+ self.college = college
29
30
@rx.event
31
def set_age(self, age: list[int | float]) -> None:
32
"""Set the age filter."""
nba/rxconfig.py
@@ -1,6 +1,3 @@
1
import reflex as rx
2
3
-config = rx.Config(
4
- app_name="nba",
5
- tailwind=None,
6
-)
+config = rx.Config(app_name="nba")
0 commit comments