Add Button #15

Closed
opened 2024-06-05 21:29:20 +00:00 by mitchell · 3 comments
Owner

Consider adding a button. Specifying what happens on click would be difficult/imposible.

Consider adding a button. Specifying what happens on click would be difficult/imposible.
Author
Owner

It could be a vanity item with a default getter that simply gets the entire FD. The FDT for button, therefore, is just FD. Then the action could be a closure that takes FD and the event, ev, and preforms the action. Passing in context is difficult/impossible.

It could be a vanity item with a default getter that simply gets the entire `FD`. The `FDT` for button, therefore, is just `FD`. Then the action could be a closure that takes `FD` and the event, `ev`, and preforms the action. Passing in context is difficult/impossible.
Author
Owner

Perhaps this could be solved by adding a context type that can be passed in when rendering the form. That would be a big, but potentially very helpful change.

Perhaps this could be solved by adding a `context` type that can be passed in when rendering the form. That would be a big, but potentially very helpful change.
Author
Owner

Buttons working. A context could be nice, because right now it cannot operate on data other than form data.
context would be necessary for things like a delete user button.

Buttons working. A context could be nice, because right now it cannot operate on data other than form data. context would be necessary for things like a delete user button.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
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: MarinoDev/leptos_form_tool#15
No description provided.