Struct glory_core::web::widgets::HtmlIframe
source · pub struct HtmlIframe(pub Element);Tuple Fields§
§0: ElementImplementations§
source§impl HtmlIframe
impl HtmlIframe
sourcepub fn allow_full_screen(self, value: impl PropValue + 'static) -> Self
pub fn allow_full_screen(self, value: impl PropValue + 'static) -> Self
A shortcut to set property allowfullscreen.
sourcepub fn credentialless(self, value: impl PropValue + 'static) -> Self
pub fn credentialless(self, value: impl PropValue + 'static) -> Self
A shortcut to set property credentialless.
sourcepub fn height(self, value: impl PropValue + 'static) -> Self
pub fn height(self, value: impl PropValue + 'static) -> Self
A shortcut to set property height.
sourcepub fn referrer_policy(self, value: impl PropValue + 'static) -> Self
pub fn referrer_policy(self, value: impl PropValue + 'static) -> Self
A shortcut to set property referrerPolicy.
sourcepub fn sandbox(self, value: impl PropValue + 'static) -> Self
pub fn sandbox(self, value: impl PropValue + 'static) -> Self
A shortcut to set property sandbox.
sourcepub fn src_doc(self, value: impl PropValue + 'static) -> Self
pub fn src_doc(self, value: impl PropValue + 'static) -> Self
A shortcut to set property srcdoc.
pub fn new() -> HtmlIframe
pub fn fill(self, filler: impl IntoFiller) -> Self
pub fn then<F>(self, func: F) -> Selfwhere
F: FnOnce(Self) -> Self,
pub fn id<V>(self, value: V) -> Selfwhere
V: AttrValue + 'static,
pub fn class<V>(self, value: V) -> Selfwhere
V: ClassPart + 'static,
pub fn toggle_class<V, C>(self, value: V, cond: C) -> Self
pub fn switch_class<TV, FV, C>(self, tv: TV, fv: FV, cond: C) -> Self
sourcepub fn prop<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: PropValue + 'static,
pub fn prop<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: PropValue + 'static,
Adds an property to this element.
sourcepub fn attr<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: AttrValue + 'static,
pub fn attr<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: AttrValue + 'static,
Adds an attribute to this element.
pub fn text<V>(self, text: V) -> Selfwhere
V: AttrValue + 'static,
sourcepub fn html<V>(self, html: V) -> Selfwhere
V: AttrValue + 'static,
pub fn html<V>(self, html: V) -> Selfwhere
V: AttrValue + 'static,
Sets the inner HTML of this element from the provided string slice.
Security
Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.
pub fn node_ref(self, node_ref: &NodeRef<Node>) -> Self
Methods from Deref<Target = Element>§
pub fn node(&self) -> &Node
pub fn add_filler(&mut self, filler: impl IntoFiller)
pub fn is_void(&self) -> bool
pub fn add_id<V>(&mut self, value: V)where
V: AttrValue + 'static,
pub fn add_class<V>(&mut self, value: V)where
V: ClassPart + 'static,
sourcepub fn add_prop<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: PropValue + 'static,
pub fn add_prop<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: PropValue + 'static,
Adds an property to this element.
sourcepub fn add_attr<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: AttrValue + 'static,
pub fn add_attr<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: AttrValue + 'static,
Adds an attribute to this element.
sourcepub fn add_event_listener<E: EventDescriptor>(
&self,
_event: E,
_event_handler: impl FnMut(E::EventType) + 'static
)
pub fn add_event_listener<E: EventDescriptor>( &self, _event: E, _event_handler: impl FnMut(E::EventType) + 'static )
Adds an event listener to this element.
Trait Implementations§
source§impl AsRef<Element> for HtmlIframe
impl AsRef<Element> for HtmlIframe
source§impl Debug for HtmlIframe
impl Debug for HtmlIframe
source§impl Deref for HtmlIframe
impl Deref for HtmlIframe
source§impl DerefMut for HtmlIframe
impl DerefMut for HtmlIframe
source§impl Widget for HtmlIframe
impl Widget for HtmlIframe
fn store_in(self, parent: &mut Scope) -> ViewIdwhere
Self: Sized,
fn show_in(self, parent: &mut Scope) -> ViewIdwhere
Self: Sized,
fn mount_to(self, ctx: Scope, parent_node: &Node) -> ViewIdwhere
Self: Sized,
fn attach(&mut self, ctx: &mut Scope)
fn build(&mut self, ctx: &mut Scope)
fn patch(&mut self, ctx: &mut Scope)
fn detach(&mut self, ctx: &mut Scope)
fn detach_children(&mut self, ctx: &mut Scope)
Auto Trait Implementations§
impl !RefUnwindSafe for HtmlIframe
impl !Send for HtmlIframe
impl !Sync for HtmlIframe
impl Unpin for HtmlIframe
impl !UnwindSafe for HtmlIframe
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more