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
I failed to find a guide to creating&inserting a canvas. After reading the official book, I guessed and tested out that the inserting pattern might be somehow like
html!{
<canvas id = "my_canvas"> {" some text"} </canvas>
}
However, where to call its creating function (say fn create_my_canvas) puzzles me much.
I found only one related example mount_point, but this example is far different from and inconsistent with the patterns shown in official book. Besides, this example compiled with errors saying that the crate yew has no function start_app_in_element.
Above all, my question would be threefold:
what's the pattern to insert a canvas with a default context.
what's the pattern to insert a canvas with an external input (I mean something like plotters)
where can I learn all the inserting patterns for all supported html tags.
Thanks for giving any guidelines.
The text was updated successfully, but these errors were encountered:
I failed to find a guide to creating&inserting a canvas. After reading the official book, I guessed and tested out that the inserting pattern might be somehow like
However, where to call its creating function (say
fn create_my_canvas
) puzzles me much.I found only one related example mount_point, but this example is far different from and inconsistent with the patterns shown in official book. Besides, this example compiled with errors saying that the crate
yew
has no functionstart_app_in_element
.Above all, my question would be threefold:
plotters
)Thanks for giving any guidelines.
The text was updated successfully, but these errors were encountered: