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,
}
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 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.
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;"
.
ARIA label for the refresh button.
Defaults to "Refresh"
.
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_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_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_aria_label: &'static str
ยงmaximize_title: &'static str
ยงmaximize_tabindex: &'static str
Style and callbacks for the share button.
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
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
impl Clone for BrowserFrameProps
Sourceยงfn clone(&self) -> BrowserFrameProps
fn clone(&self) -> BrowserFrameProps
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSourceยงimpl PartialEq for BrowserFrameProps
impl PartialEq for BrowserFrameProps
Sourceยงimpl Properties for BrowserFrameProps
impl Properties for BrowserFrameProps
impl StructuralPartialEq for BrowserFrameProps
Auto Trait Implementationsยง
impl Freeze for BrowserFrameProps
impl !RefUnwindSafe for BrowserFrameProps
impl !Send for BrowserFrameProps
impl !Sync for BrowserFrameProps
impl Unpin for BrowserFrameProps
impl !UnwindSafe for BrowserFrameProps
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self
to a value of a Properties
struct.