pub struct DragDropListProps<T, U>{
pub parent: Scope<T>,
pub presentation: Presentation,
pub name: &'static str,
pub column_dropdown: ColumnDropDownElement,
pub exclude: HashSet<String>,
pub children: ChildrenWithProps<U>,
pub disabled: bool,
pub is_dragover: Option<(usize, <<U as Component>::Properties as DragDropListItemProps>::Item)>,
pub allow_duplicates: bool,
pub single_slot: bool,
pub role_label: Option<AttrValue>,
pub is_invalid: bool,
}Fields§
§parent: Scope<T>§presentation: Presentation§name: &'static str§column_dropdown: ColumnDropDownElement§exclude: HashSet<String>§children: ChildrenWithProps<U>§disabled: bool§is_dragover: Option<(usize, <<U as Component>::Properties as DragDropListItemProps>::Item)>§allow_duplicates: bool§single_slot: boolSingle-slot mode: the list holds at most one item, a dragover
preview REPLACES the current item rather than inserting beside it,
and the trailing EmptyColumn autocomplete renders only while the
slot is empty.
role_label: Option<AttrValue>The plugin-declared visual role this slot fills, e.g. "X Axis"
for a Y Line’s group_by (see PluginStaticConfig). Rendered
as the slot’s label THROUGH the intl indirection: the role is a
key, not display text, so --psp-label--role--x-axis--content
supplies the words and a language variant can override them. A
role with no such label falls back to the declared English, and
no role at all falls back to the slot’s own generic label.
is_invalid: boolThe in-flight drag is INVALID for this list (a parent-defined rule,
e.g. the window editor’s Table-columns-only slots): the dragover
preview is suppressed and the invalid-X overlay renders instead,
like a duplicate drag over group_by/split_by. The parent’s drop
handler is still responsible for ignoring the drop itself.
Trait Implementations§
Source§impl<T, U> Clone for DragDropListProps<T, U>
impl<T, U> Clone for DragDropListProps<T, U>
Source§impl<T, U> PartialEq for DragDropListProps<T, U>
impl<T, U> PartialEq for DragDropListProps<T, U>
Source§impl<T, U> Properties for DragDropListProps<T, U>
impl<T, U> Properties for DragDropListProps<T, U>
Auto Trait Implementations§
impl<T, U> !RefUnwindSafe for DragDropListProps<T, U>
impl<T, U> !Send for DragDropListProps<T, U>
impl<T, U> !Sync for DragDropListProps<T, U>
impl<T, U> !UnwindSafe for DragDropListProps<T, U>
impl<T, U> Freeze for DragDropListProps<T, U>where
Scope<T>: Freeze,
ChildrenRenderer<VChild<U>>: Freeze,
Option<(usize, <<U as Component>::Properties as DragDropListItemProps>::Item)>: Freeze,
impl<T, U> Unpin for DragDropListProps<T, U>where
Scope<T>: Unpin,
ChildrenRenderer<VChild<U>>: Unpin,
Option<(usize, <<U as Component>::Properties as DragDropListItemProps>::Item)>: Unpin,
impl<T, U> UnsafeUnpin for DragDropListProps<T, U>where
Scope<T>: UnsafeUnpin,
ChildrenRenderer<VChild<U>>: UnsafeUnpin,
Option<(usize, <<U as Component>::Properties as DragDropListItemProps>::Item)>: UnsafeUnpin,
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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,
impl<T> HasAllProps<(), T> for 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.