Button list for playground #3

Open
opened 2024-11-26 19:35:54 +00:00 by yumaikas · 0 comments
Owner

In order to make interactive programs easier to write in the playground, I'm suggesting the following things be added to it:

  1. @make button port that reads
    • @button text, which is a pointer or handle to a string
    • @button action, which is a pointer or handle to a string

and then adds a button below the canvas has text @button text and evals @button action when clicked

To aid in making button layouts easier to customize, a @button newline port might also be useful, at a lower priority than the @make button port (aka, it happens after)

Finally, as a convenience, a |#| button, Text, Action annotation could be added that expands to declare the relevant string constants, and then emits the @make button port.

In order to make interactive programs easier to write in the playground, I'm suggesting the following things be added to it: 1) `@make button` port that reads 2) - `@button text`, which is a pointer or handle to a string 3) - `@button action`, which is a pointer or handle to a string and then adds a button below the canvas has text `@button text` and evals `@button action` when clicked To aid in making button layouts easier to customize, a `@button newline` port might also be useful, at a lower priority than the `@make button` port (aka, it happens after) Finally, as a convenience, a `|#| button, Text, Action` annotation could be added that expands to declare the relevant string constants, and then emits the `@make button` port.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: vera/nova-rust#3
No description provided.