SelectEntriesExtension extension
Properties
- firstSelectedId → String?
-
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns the id of the first selected entry, ornullwhen nothing is selected. Convenience accessor for single-selection tabs such as sort order.no setter
Methods
-
cascadingPairsOf(
String categoryId) → List< ({List< String> childIds, String id})> -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns parent → child-id pairs for a cascading category (e.g. region/metro with districts and sub-districts). -
childIdsOf(
String categoryId) → List< String> -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns the ids of all direct children of the category withcategoryId. -
childRangesOf(
String categoryId) → List< SelectRangeEntry> -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns all direct children of the category withcategoryIdthat are SelectRangeEntry values (e.g. price/area ranges carryingmin/max). -
findCategory(
String categoryId) → SelectEntry? -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Finds the first selected top-level entry (category) whoseidmatchescategoryId, ornullif no such category is selected. -
findChildrenAtLevel(
SelectEntry entry, int level) → Set< SelectEntry> -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns the child entries ofentrylocated at the given treelevel. -
findExtrasAtLevel(
SelectEntry entry, int level) → List< String> -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns the extra ids of the children ofentrylocated at the given treelevel. -
findIdsAtLevel(
SelectEntry entry, int level) → Set< String> -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Returns the ids of the children ofentrylocated at the given treelevel. -
flatten(
) → List< SelectEntries> ? -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Flattens a selection tree into a list of selections per depth level. -
insert(
int index, SelectEntry entry) → void -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Insertsentryat the givenindexwhile preserving set iteration order. -
toQueryMap(
) → Map< String, List< String> > -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Converts this selection tree into a map of query keys to value lists, e.g.{cate1: [a, b], cate2: [c]}. -
toQueryParameters(
{SelectArrayFormat arrayFormat = SelectArrayFormat.repeat, String delimiter = ',', bool encode = true}) → String -
Available on SelectEntries, provided by the SelectEntriesExtension extension
Converts this selection tree into a URL query string such ascate1=a&cate2=b, with the multi-value layout controlled byarrayFormat.