mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
ListRow::leaves is set only by List::tree_leaves
This commit is contained in:
@@ -266,7 +266,6 @@ pub struct ListRow<'a> {
|
||||
/// keeps the disclosure column and paints no disclosure.
|
||||
pub(super) disclosure_by_host: bool,
|
||||
/// How the row's tree lines up its leaves: the collection gives it (`List::tree_leaves`).
|
||||
#[prop]
|
||||
pub(super) leaves: TreeLeaves,
|
||||
/// The row is an option of a listbox, not an item of a list: inset and rounded, the chosen option outlined.
|
||||
#[style_key]
|
||||
@@ -398,6 +397,13 @@ impl<'a> ListRow<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
/// How the collection's tree lines up its leaves (`List::tree_leaves`).
|
||||
#[must_use]
|
||||
pub(crate) fn leaves(mut self, leaves: TreeLeaves) -> Self {
|
||||
self.leaves = leaves;
|
||||
self
|
||||
}
|
||||
|
||||
/// The sub-row form and the divider under the row, from the collection's row state.
|
||||
#[must_use]
|
||||
pub(crate) fn sub_row(mut self, row: &RowState) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user