Struct BrowserFrameProps

Source
pub struct BrowserFrameProps {
Show 80 fields pub children: Element, pub url: String, pub placeholder: &'static str, pub on_url_change: Option<EventHandler<FormEvent>>, pub on_close: EventHandler<()>, pub on_minimize: EventHandler<()>, pub on_maximize: EventHandler<()>, pub show_controls: bool, pub show_address_bar: bool, pub read_only: bool, pub size: Size, pub variant: Variant, pub custom_buttons: Vec<Element>, pub class: &'static str, pub frame_class: &'static str, pub style: &'static str, pub id: &'static str, pub aria_label: &'static str, pub aria_describedby: &'static str, pub container_class: &'static str, pub input_class: &'static str, pub refresh_button_style: &'static str, pub refresh_button_aria_label: &'static str, pub icon_button_style: &'static str, pub address_wrapper_base_style: &'static str, pub header_base_style: &'static str, pub on_close_mouse_over: EventHandler<()>, pub on_close_mouse_out: EventHandler<()>, pub on_close_focus: EventHandler<FocusEvent>, pub on_close_blur: EventHandler<FocusEvent>, pub close_class: &'static str, pub close_svg_class: &'static str, pub close_path_class: &'static str, pub close_button_type: &'static str, pub close_aria_label: &'static str, pub close_title: &'static str, pub close_tabindex: &'static str, pub on_minimize_mouse_over: EventHandler<()>, pub on_minimize_mouse_out: EventHandler<()>, pub on_minimize_focus: EventHandler<FocusEvent>, pub on_minimize_blur: EventHandler<FocusEvent>, pub minimize_class: &'static str, pub minimize_svg_class: &'static str, pub minimize_path_class: &'static str, pub minimize_button_type: &'static str, pub minimize_aria_label: &'static str, pub minimize_title: &'static str, pub minimize_tabindex: &'static str, pub on_maximize_mouse_over: EventHandler<()>, pub on_maximize_mouse_out: EventHandler<()>, pub on_maximize_focus: EventHandler<FocusEvent>, pub on_maximize_blur: EventHandler<FocusEvent>, pub maximize_class: &'static str, pub maximize_svg_class: &'static str, pub maximize_path_class: &'static str, pub maximize_button_type: &'static str, pub maximize_aria_label: &'static str, pub maximize_title: &'static str, pub maximize_tabindex: &'static str, pub share_button_style: &'static str, pub share_onclick: EventHandler<()>, pub share_onmouseover: EventHandler<()>, pub share_onmouseout: EventHandler<()>, pub share_onfocus: EventHandler<FocusEvent>, pub share_onblur: EventHandler<FocusEvent>, pub share_tabindex: &'static str, pub tabs_button_style: &'static str, pub tabs_onclick: EventHandler<()>, pub tabs_onmouseover: EventHandler<()>, pub tabs_onmouseout: EventHandler<()>, pub tabs_onfocus: EventHandler<FocusEvent>, pub tabs_onblur: EventHandler<FocusEvent>, pub tabs_tabindex: &'static str, pub more_button_style: &'static str, pub more_onclick: EventHandler<()>, pub more_onmouseover: EventHandler<()>, pub more_onmouseout: EventHandler<()>, pub more_onfocus: EventHandler<FocusEvent>, pub more_onblur: EventHandler<FocusEvent>, pub more_tabindex: &'static str,
}
Available on crate feature dio only.
Expand description

Properties for the BrowserFrame component.

This component simulates a web browser window with controls like close, minimize, maximize, and supports rich customization via props.

Fieldsยง

ยงchildren: Element

Child elements rendered inside the browser frame body.

ยงurl: String

The URL displayed in the address bar and used in the iframe.

ยงplaceholder: &'static str

Placeholder text shown in the address input field.

ยงon_url_change: Option<EventHandler<FormEvent>>

Event handler for when the address bar URL changes.

ยงon_close: EventHandler<()>

Event handler triggered when the close button is clicked.

ยงon_minimize: EventHandler<()>

Event handler triggered when the minimize button is clicked.

ยงon_maximize: EventHandler<()>

Event handler triggered when the maximize button is clicked.

ยงshow_controls: bool

Whether to show the top-right control buttons (close, minimize, maximize).

Defaults to true.

ยงshow_address_bar: bool

Whether to show the address bar.

Defaults to true.

ยงread_only: bool

Whether the address bar is read-only.

Defaults to false.

ยงsize: Size

Size of the browser frame container.

ยงvariant: Variant

Display variant for the frame (e.g., Tabs, Plain, etc.).

ยงcustom_buttons: Vec<Element>

Optional list of custom buttons displayed in the top bar.

ยงclass: &'static str

CSS class applied to the outermost container.

Defaults to: "rounded-lg border shadow-lg overflow-hidden bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700"

ยงframe_class: &'static str

CSS class applied to the browser frame.

ยงstyle: &'static str

Inline style string applied to the outermost container.

ยงid: &'static str

HTML id attribute for the browser container.

ยงaria_label: &'static str

ARIA label for accessibility.

Defaults to "Browser window".

ยงaria_describedby: &'static str

ARIA description for additional accessibility context.

ยงcontainer_class: &'static str

Additional CSS class for the address bar container.

ยงinput_class: &'static str

Additional CSS class for the input element in the address bar.

Defaults to "text-black dark:text-white".

ยงrefresh_button_style: &'static str

Inline style for the refresh button inside the address bar.

ยงrefresh_button_aria_label: &'static str

ARIA label for the refresh button.

Defaults to "Refresh".

ยงicon_button_style: &'static str

Shared inline style for all icon buttons (close, minimize, maximize).

ยงaddress_wrapper_base_style: &'static str

Inline style for the wrapper around the address bar.

ยงheader_base_style: &'static str

Inline style for the header container (holds address bar and controls).

ยงon_close_mouse_over: EventHandler<()>ยงon_close_mouse_out: EventHandler<()>ยงon_close_focus: EventHandler<FocusEvent>ยงon_close_blur: EventHandler<FocusEvent>ยงclose_class: &'static strยงclose_svg_class: &'static strยงclose_path_class: &'static strยงclose_button_type: &'static strยงclose_aria_label: &'static strยงclose_title: &'static strยงclose_tabindex: &'static strยงon_minimize_mouse_over: EventHandler<()>ยงon_minimize_mouse_out: EventHandler<()>ยงon_minimize_focus: EventHandler<FocusEvent>ยงon_minimize_blur: EventHandler<FocusEvent>ยงminimize_class: &'static strยงminimize_svg_class: &'static strยงminimize_path_class: &'static strยงminimize_button_type: &'static strยงminimize_aria_label: &'static strยงminimize_title: &'static strยงminimize_tabindex: &'static strยงon_maximize_mouse_over: EventHandler<()>ยงon_maximize_mouse_out: EventHandler<()>ยงon_maximize_focus: EventHandler<FocusEvent>ยงon_maximize_blur: EventHandler<FocusEvent>ยงmaximize_class: &'static strยงmaximize_svg_class: &'static strยงmaximize_path_class: &'static strยงmaximize_button_type: &'static strยงmaximize_aria_label: &'static strยงmaximize_title: &'static strยงmaximize_tabindex: &'static strยงshare_button_style: &'static strยงshare_onclick: EventHandler<()>ยงshare_onmouseover: EventHandler<()>ยงshare_onmouseout: EventHandler<()>ยงshare_onfocus: EventHandler<FocusEvent>ยงshare_onblur: EventHandler<FocusEvent>ยงshare_tabindex: &'static strยงtabs_button_style: &'static strยงtabs_onclick: EventHandler<()>ยงtabs_onmouseover: EventHandler<()>ยงtabs_onmouseout: EventHandler<()>ยงtabs_onfocus: EventHandler<FocusEvent>ยงtabs_onblur: EventHandler<FocusEvent>ยงtabs_tabindex: &'static strยงmore_button_style: &'static strยงmore_onclick: EventHandler<()>ยงmore_onmouseover: EventHandler<()>ยงmore_onmouseout: EventHandler<()>ยงmore_onfocus: EventHandler<FocusEvent>ยงmore_onblur: EventHandler<FocusEvent>ยงmore_tabindex: &'static str

Implementationsยง

Sourceยง

impl BrowserFrameProps

Source

pub fn builder() -> BrowserFramePropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>

Create a builder for building BrowserFrameProps. On the builder, call .children(...)(optional), .url(...)(optional), .placeholder(...)(optional), .on_url_change(...)(optional), .on_close(...)(optional), .on_minimize(...)(optional), .on_maximize(...)(optional), .show_controls(...)(optional), .show_address_bar(...)(optional), .read_only(...)(optional), .size(...)(optional), .variant(...)(optional), .custom_buttons(...)(optional), .class(...)(optional), .frame_class(...)(optional), .style(...)(optional), .id(...)(optional), .aria_label(...)(optional), .aria_describedby(...)(optional), .container_class(...)(optional), .input_class(...)(optional), .refresh_button_style(...)(optional), .refresh_button_aria_label(...)(optional), .icon_button_style(...)(optional), .address_wrapper_base_style(...)(optional), .header_base_style(...)(optional), .on_close_mouse_over(...)(optional), .on_close_mouse_out(...)(optional), .on_close_focus(...)(optional), .on_close_blur(...)(optional), .close_class(...)(optional), .close_svg_class(...)(optional), .close_path_class(...)(optional), .close_button_type(...)(optional), .close_aria_label(...)(optional), .close_title(...)(optional), .close_tabindex(...)(optional), .on_minimize_mouse_over(...)(optional), .on_minimize_mouse_out(...)(optional), .on_minimize_focus(...)(optional), .on_minimize_blur(...)(optional), .minimize_class(...)(optional), .minimize_svg_class(...)(optional), .minimize_path_class(...)(optional), .minimize_button_type(...)(optional), .minimize_aria_label(...)(optional), .minimize_title(...)(optional), .minimize_tabindex(...)(optional), .on_maximize_mouse_over(...)(optional), .on_maximize_mouse_out(...)(optional), .on_maximize_focus(...)(optional), .on_maximize_blur(...)(optional), .maximize_class(...)(optional), .maximize_svg_class(...)(optional), .maximize_path_class(...)(optional), .maximize_button_type(...)(optional), .maximize_aria_label(...)(optional), .maximize_title(...)(optional), .maximize_tabindex(...)(optional), .share_button_style(...)(optional), .share_onclick(...)(optional), .share_onmouseover(...)(optional), .share_onmouseout(...)(optional), .share_onfocus(...)(optional), .share_onblur(...)(optional), .share_tabindex(...)(optional), .tabs_button_style(...)(optional), .tabs_onclick(...)(optional), .tabs_onmouseover(...)(optional), .tabs_onmouseout(...)(optional), .tabs_onfocus(...)(optional), .tabs_onblur(...)(optional), .tabs_tabindex(...)(optional), .more_button_style(...)(optional), .more_onclick(...)(optional), .more_onmouseover(...)(optional), .more_onmouseout(...)(optional), .more_onfocus(...)(optional), .more_onblur(...)(optional), .more_tabindex(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of BrowserFrameProps.

Trait Implementationsยง

Sourceยง

impl Clone for BrowserFrameProps

Sourceยง

fn clone(&self) -> BrowserFrameProps

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl PartialEq for BrowserFrameProps

Sourceยง

fn eq(&self, other: &BrowserFrameProps) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl Properties for BrowserFrameProps
where Self: Clone,

Sourceยง

type Builder = BrowserFramePropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>

The type of the builder for this component. Used to create โ€œin-progressโ€ versions of the props.
Sourceยง

fn builder() -> Self::Builder

Create a builder for this component.
Sourceยง

fn memoize(&mut self, new: &Self) -> bool

Make the old props equal to the new props. Return if the props were equal and should be memoized.
Sourceยง

fn into_vcomponent<M>( self, render_fn: impl ComponentFunction<Self, M>, ) -> VComponent
where M: 'static,

Create a component from the props.
Sourceยง

impl StructuralPartialEq for BrowserFrameProps

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> InitializeFromFunction<T> for T

Sourceยง

fn initialize_from_function(f: fn() -> T) -> T

Create an instance of this type from an initialization function
Sourceยง

impl<T> Instrument for T

Sourceยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> IntoPropValue<Option<T>> for T

Sourceยง

fn into_prop_value(self) -> Option<T>

Convert self to a value of a Properties struct.
Sourceยง

impl<T> IntoPropValue<T> for T

Sourceยง

fn into_prop_value(self) -> T

Convert self to a value of a Properties struct.
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<Ret> SpawnIfAsync<(), Ret> for Ret

Sourceยง

fn spawn(self) -> Ret

Spawn the value into the dioxus runtime if it is an async block
Sourceยง

impl<T, O> SuperFrom<T> for O
where O: From<T>,

Sourceยง

fn super_from(input: T) -> O

Convert from a type to another type.
Sourceยง

impl<T, O, M> SuperInto<O, M> for T
where O: SuperFrom<T, M>,

Sourceยง

fn super_into(self) -> O

Convert from a type to another type.
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

impl<Token, Builder, How> AllPropsFor<Builder, How> for Token
where Builder: Buildable<Token>, <Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,

Sourceยง

impl<T> DependencyElement for T
where T: 'static + PartialEq + Clone,

Sourceยง

impl<T> HasAllProps<(), T> for T