pub struct ExpandableSection { /* private fields */ }Expand description
Expandable Section component
An expandable section component is used to support progressive disclosure in a form or page by hiding additional content when you don’t want it to be shown by default. An expandable section can contain any type of content such as plain text, form inputs, and charts.
See: https://www.patternfly.org/components/expandable-section
§Properties
Defined by ExpandableSectionProperties
§Detached
If the detached property is true, the component will neither create a
ExpandableSectionToggle as part of its children, not track the state change through the
toggle.
However, you can manually place the toggle in a different position.
TIP: See the quickstart project for an example.
§Children
The section will simpl show or hide its children based on the “expanded” state. If the
component is not “detached” then a ExpandableSectionToggle component will automatically
be part of its children.
Trait Implementations§
Source§impl BaseComponent for ExpandableSectionwhere
Self: 'static,
impl BaseComponent for ExpandableSectionwhere
Self: 'static,
Source§type Properties = ExpandableSectionProperties
type Properties = ExpandableSectionProperties
Source§fn update(&mut self, _ctx: &Context<Self>, _msg: Self::Message) -> bool
fn update(&mut self, _ctx: &Context<Self>, _msg: Self::Message) -> bool
Source§fn changed(
&mut self,
_ctx: &Context<Self>,
_old_props: &Self::Properties,
) -> bool
fn changed( &mut self, _ctx: &Context<Self>, _old_props: &Self::Properties, ) -> bool
Source§fn view(&self, ctx: &Context<Self>) -> HtmlResult
fn view(&self, ctx: &Context<Self>) -> HtmlResult
Source§fn rendered(&mut self, _ctx: &Context<Self>, _first_render: bool)
fn rendered(&mut self, _ctx: &Context<Self>, _first_render: bool)
Source§fn prepare_state(&self) -> Option<String>
fn prepare_state(&self) -> Option<String>
Source§impl Debug for ExpandableSection
impl Debug for ExpandableSection
Source§impl FunctionProvider for ExpandableSection
impl FunctionProvider for ExpandableSection
Source§type Properties = ExpandableSectionProperties
type Properties = ExpandableSectionProperties
Source§fn run(ctx: &mut HookContext, props: &Self::Properties) -> HtmlResult
fn run(ctx: &mut HookContext, props: &Self::Properties) -> HtmlResult
Auto Trait Implementations§
impl !Freeze for ExpandableSection
impl !RefUnwindSafe for ExpandableSection
impl !Send for ExpandableSection
impl !Sync for ExpandableSection
impl Unpin for ExpandableSection
impl !UnwindSafe for ExpandableSection
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut 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.