Closed MGlolenstine closed 4 years ago
For every *-attribute.rs
example, there's one without using the #[widget]
attribute.
Also, there's a emit()
method on a component to send it a message. It's even in the doc.
Do you need more help or can we close this issue?
I think we can close it, I haven't gotten around to testing it, but I'll reopen, if more questions arise.
Thanks!
I just came around to testing it, and it works well with the emit()
.
Thanks!
This is a continuation of #204 ... Now I have everything set up for the ListView, but I'm having some problems adding to the said list. It works fine to add it to the constructor, but if I make a public method
add_entry
, I can't call it, as I getrelm::component::Component<ListView>
instead of justListView
, that is when I get it like thisNow I tried adding an entry using this
but I can't call it.
How can I send a message or call a method inside a component?
PS: If I understand this correctly, when the button is clicked, it sends a message to the child, in this case,
counter1
. How would I do that via code?