Struct yew_accordion::AccordionProps
source ยท pub struct AccordionProps {
pub expanded_element: Html,
pub collapsed_element: Html,
pub children: Html,
pub size: &'static str,
pub aria_controls: &'static str,
pub container_class: &'static str,
pub expanded_element_class: &'static str,
pub collapsed_element_class: &'static str,
pub content_container_class: &'static str,
}
Expand description
Properties for the Accordion component.
Fieldsยง
ยงexpanded_element: Html
The content to be displayed when the accordion is expanded.
collapsed_element: Html
The content to be displayed when the accordion is collapsed.
children: Html
The child elements within the accordion.
size: &'static str
Size of the accordion. Possible values: โsmโ, โmdโ, โlgโ.
aria_controls: &'static str
ARIA controls attribute for accessibility.
container_class: &'static str
Class for the container element.
expanded_element_class: &'static str
Class for the expanded element.
collapsed_element_class: &'static str
Class for the collapsed element.
content_container_class: &'static str
Class for the content container.
Trait Implementationsยง
sourceยงimpl Clone for AccordionProps
impl Clone for AccordionProps
sourceยงfn clone(&self) -> AccordionProps
fn clone(&self) -> AccordionProps
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceยงimpl PartialEq for AccordionProps
impl PartialEq for AccordionProps
sourceยงfn eq(&self, other: &AccordionProps) -> bool
fn eq(&self, other: &AccordionProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.sourceยงimpl Properties for AccordionProps
impl Properties for AccordionProps
impl StructuralPartialEq for AccordionProps
Auto Trait Implementationsยง
impl !RefUnwindSafe for AccordionProps
impl !Send for AccordionProps
impl !Sync for AccordionProps
impl Unpin for AccordionProps
impl !UnwindSafe for AccordionProps
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
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยง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>
Convert
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
Convert
self
to a value of a Properties
struct.