mirror of https://github.com/linebender/xilem
xilem_web: Add function to set HtmlIFrameElement src attribute (#466)
Apropos of #462. Let me know if this should have a test or an example!
This commit is contained in:
parent
b71f533571
commit
741c36b13a
|
@ -637,6 +637,10 @@ where
|
|||
pub trait HtmlIFrameElement<State, Action = ()>:
|
||||
HtmlElement<State, Action, DomNode: AsRef<web_sys::HtmlIFrameElement>>
|
||||
{
|
||||
/// See <https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src> for more details
|
||||
fn src(self, value: impl IntoAttributeValue) -> Attr<Self, State, Action> {
|
||||
Attr::new(self, "src".into(), value.into_attr_value())
|
||||
}
|
||||
}
|
||||
|
||||
// #[cfg(feature = "HtmlIFrameElement")]
|
||||
|
|
Loading…
Reference in New Issue