Struct BrowserFrameProps

Source
pub struct BrowserFrameProps {
Show 80 fields pub children: Children, pub url: String, pub placeholder: &'static str, pub on_url_change: Option<Callback<InputEvent>>, pub on_close: Callback<()>, pub on_minimize: Callback<()>, pub on_maximize: Callback<()>, pub show_controls: bool, pub show_address_bar: bool, pub read_only: bool, pub size: Size, pub variant: Variant, pub custom_buttons: Vec<Html>, 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: Callback<()>, pub on_close_mouse_out: Callback<()>, pub on_close_focus: Callback<FocusEvent>, pub on_close_blur: Callback<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: Callback<()>, pub on_minimize_mouse_out: Callback<()>, pub on_minimize_focus: Callback<FocusEvent>, pub on_minimize_blur: Callback<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: Callback<()>, pub on_maximize_mouse_out: Callback<()>, pub on_maximize_focus: Callback<FocusEvent>, pub on_maximize_blur: Callback<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: Callback<()>, pub share_onmouseover: Callback<()>, pub share_onmouseout: Callback<()>, pub share_onfocus: Callback<FocusEvent>, pub share_onblur: Callback<FocusEvent>, pub share_tabindex: &'static str, pub tabs_button_style: &'static str, pub tabs_onclick: Callback<()>, pub tabs_onmouseover: Callback<()>, pub tabs_onmouseout: Callback<()>, pub tabs_onfocus: Callback<FocusEvent>, pub tabs_onblur: Callback<FocusEvent>, pub tabs_tabindex: &'static str, pub more_button_style: &'static str, pub more_onclick: Callback<()>, pub more_onmouseover: Callback<()>, pub more_onmouseout: Callback<()>, pub more_onfocus: Callback<FocusEvent>, pub more_onblur: Callback<FocusEvent>, pub more_tabindex: &'static str,
}
Available on crate feature yew only.
Expand description

Properties for the BrowserFrame component.

This struct provides a wide range of customization options and handlers for the browser frameโ€™s appearance and behavior.

Fieldsยง

ยงchildren: Children

Child components to render inside the browser frame.

ยงurl: String

The current URL displayed in the address bar.

ยงplaceholder: &'static str

Placeholder text for the address bar input.

ยงon_url_change: Option<Callback<InputEvent>>

Callback for when the URL is changed by the user.

ยงon_close: Callback<()>

Callback when the close button is clicked.

ยงon_minimize: Callback<()>

Callback when the minimize button is clicked.

ยงon_maximize: Callback<()>

Callback when the maximize button is clicked.

ยงshow_controls: bool

Whether to show the window controls (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

The size of the browser frame (e.g., small, medium, large).

ยงvariant: Variant

The visual variant of the browser frame.

ยงcustom_buttons: Vec<Html>

Custom buttons to render in the browser header.

ยงclass: &'static str

CSS classes for styling the outer container of the browser frame.

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 classes for styling the browser frame.

ยงstyle: &'static str

Inline styles for the outer container.

ยงid: &'static str

Optional ID for the outer container.

ยงaria_label: &'static str

ARIA label for the browser frame container.

Defaults to "Browser window".

ยงaria_describedby: &'static str

ARIA description for the browser frame container.

ยงcontainer_class: &'static str

CSS classes for the address bar container.

ยงinput_class: &'static str

CSS classes for the address bar input element.

ยงrefresh_button_style: &'static str

Inline styles for the refresh button.

Defaults to: "position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 4px; background: none; border: none; box-shadow: none; outline: none; cursor: pointer;".

ยงrefresh_button_aria_label: &'static str

ARIA label for the refresh button.

Defaults to "Refresh".

ยงicon_button_style: &'static str

Inline styles for icon buttons (close, minimize, maximize).

Defaults to: "padding: 4px; cursor: pointer; background: none; border: none; box-shadow: none; outline: none;".

ยงaddress_wrapper_base_style: &'static str

Inline styles for the address bar wrapper.

Defaults to: "flex: 1; display: flex; justify-content: center; padding-right: 8px;".

ยงheader_base_style: &'static str

Inline styles for the header container.

Defaults to: "display: flex; align-items: center; position: relative;".

ยงon_close_mouse_over: Callback<()>

Callbacks and styles for the close button and related elements.

ยงon_close_mouse_out: Callback<()>ยงon_close_focus: Callback<FocusEvent>ยงon_close_blur: Callback<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: Callback<()>

Callbacks and styles for the minimize button and related elements.

ยงon_minimize_mouse_out: Callback<()>ยงon_minimize_focus: Callback<FocusEvent>ยงon_minimize_blur: Callback<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: Callback<()>

Callbacks and styles for the maximize button and related elements.

ยงon_maximize_mouse_out: Callback<()>ยงon_maximize_focus: Callback<FocusEvent>ยงon_maximize_blur: Callback<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

Style and callbacks for the share button.

ยงshare_onclick: Callback<()>ยงshare_onmouseover: Callback<()>ยงshare_onmouseout: Callback<()>ยงshare_onfocus: Callback<FocusEvent>ยงshare_onblur: Callback<FocusEvent>ยงshare_tabindex: &'static strยงtabs_button_style: &'static str

Style and callbacks for the tabs button.

ยงtabs_onclick: Callback<()>ยงtabs_onmouseover: Callback<()>ยงtabs_onmouseout: Callback<()>ยงtabs_onfocus: Callback<FocusEvent>ยงtabs_onblur: Callback<FocusEvent>ยงtabs_tabindex: &'static strยงmore_button_style: &'static str

Style and callbacks for the more button.

ยงmore_onclick: Callback<()>ยงmore_onmouseover: Callback<()>ยงmore_onmouseout: Callback<()>ยงmore_onfocus: Callback<FocusEvent>ยงmore_onblur: Callback<FocusEvent>ยงmore_tabindex: &'static str

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

Sourceยง

type Builder = BrowserFramePropsBuilder

Builder that will be used to construct properties
Sourceยง

fn builder() -> Self::Builder

Entrypoint for building properties
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