pub struct TooltipProps {
pub content: Cow<'static, str>,
pub side: TooltipSide,
pub class: Option<Cow<'static, str>>,
pub attrs: AttrMap,
pub children: Children,
}Expand description
Tooltip — CSS-only via data-tooltip and optional data-side attributes.
No separate container element needed — the tooltip wraps the trigger.
Fields§
§content: Cow<'static, str>The tooltip text (goes into data-tooltip).
side: TooltipSide§class: Option<Cow<'static, str>>§attrs: AttrMap§children: ChildrenThe trigger element (button, link, etc.) rendered inside.
Implementations§
Source§impl TooltipProps
impl TooltipProps
pub const __BASECOAT_EXTEND_FIELD: Option<&'static str>
Sourcepub fn builder() -> TooltipPropsBuilder
pub fn builder() -> TooltipPropsBuilder
Create a builder for this prop struct.
Trait Implementations§
Source§impl Clone for TooltipProps
impl Clone for TooltipProps
Source§fn clone(&self) -> TooltipProps
fn clone(&self) -> TooltipProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TooltipProps
impl Debug for TooltipProps
Source§impl Default for TooltipProps
impl Default for TooltipProps
Source§fn default() -> TooltipProps
fn default() -> TooltipProps
Returns the “default value” for a type. Read more
Source§impl From<TooltipPropsBuilder> for TooltipProps
impl From<TooltipPropsBuilder> for TooltipProps
Source§fn from(b: TooltipPropsBuilder) -> Self
fn from(b: TooltipPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TooltipProps
impl RefUnwindSafe for TooltipProps
impl Send for TooltipProps
impl Sync for TooltipProps
impl Unpin for TooltipProps
impl UnsafeUnpin for TooltipProps
impl UnwindSafe for TooltipProps
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