AddRemove: Make a button that adds points
All checks were successful
/ test (pull_request) Successful in 2m25s
All checks were successful
/ test (pull_request) Successful in 2m25s
This commit is contained in:
parent
b7375e7101
commit
07a415843d
2 changed files with 11 additions and 3 deletions
|
@ -214,7 +214,13 @@ pub fn AddRemove() -> View {
|
|||
let state = use_context::<AppState>();
|
||||
state.assembly.insert_element_default::<Sphere>();
|
||||
}
|
||||
) { "+" }
|
||||
) { "Add sphere" }
|
||||
button(
|
||||
on:click=|_| {
|
||||
let state = use_context::<AppState>();
|
||||
state.assembly.insert_element_default::<Point>();
|
||||
}
|
||||
) { "Add point" }
|
||||
button(
|
||||
class="emoji", /* KLUDGE */ // for convenience, we're using an emoji as a temporary icon for this button
|
||||
disabled={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue