Function thaw_components::Binder
source · pub fn Binder<El: ElementDescriptor + Clone + 'static>(
props: BinderProps<El>
) -> impl IntoViewExpand description
§Tracking popup
use crate::components::{Binder, Follower, FollowerPlacement};
use leptos::*;
let div_ref= NodeRef::new();
let show = RwSignal::new(false);
view! {
<Binder target_ref=div_ref>
<div ref=div_ref>
"content"
</div>
<Follower slot show placement=FollowerPlacement::BottomStart>
"content2"
</Follower>
</Binder>
}§Required Props
- target_ref:
impl Into<NodeRef<El>>- Used to track DOM locations
- follower:
Follower- Content for pop-up display
- children:
Children