yew icon indicating copy to clipboard operation
yew copied to clipboard

Align IString/AttrValue with Cow of element

Open ctron opened this issue 2 years ago • 0 comments

It is possible to set the value of an element using <@{value} />. This seems to be of the type Cow<'static, str>.

However, there also seems to be no IntoPropValue for various string types to Cow<'static, str>, which makes dealing with it a bit cumbersome.

On the other hand AttrValue seems to have solved this just fine.

Maybe a way to deal with this would be to use IString or simply AttrValue for this use case as well. Maybe support Cow<static, str>` would also make sense.

ctron avatar Nov 09 '23 09:11 ctron