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
We can probably make this experience much smoother.
Some requirements to keep in mind with this experience:
We can create multiple actions. We'll change the KBarProvider to accept initial_actions but we can also dynamically create actions using some function like add_actions(Vec<Arc<KBarAction>>).
We'll need to change the internal actions state to a tree that mimics the routing of different actions.
A visual thinking:
Global actions: [Home, Documentation, Settings]
inside documentation: the subactions could be ["source code", "help desk"]
inside settings the subactions could be ["edit profile", "change theme"]
This will also mean that a KBarAction needs another attribute that holds the reference of their parent kbaraction (Option since global/root action parents are None)
The text was updated successfully, but these errors were encountered:
Right now we create actions like so:
https://github.com/friendlymatthew/leptos-kbar/blob/975505097a2a8b9bd70525403f239c278a030ab0/examples/demo/src/app.rs#L14-L24
We can probably make this experience much smoother.
Some requirements to keep in mind with this experience:
We can create multiple actions. We'll change the
KBarProvider
to acceptinitial_actions
but we can also dynamically create actions using some function likeadd_actions(Vec<Arc<KBarAction>>)
.We'll need to change the internal
actions
state to a tree that mimics the routing of different actions.A visual thinking:
Global actions: [Home, Documentation, Settings]
inside documentation: the subactions could be ["source code", "help desk"]
inside settings the subactions could be ["edit profile", "change theme"]
This will also mean that a KBarAction needs another attribute that holds the reference of their parent kbaraction (Option since global/root action parents are None)
The text was updated successfully, but these errors were encountered: