Structure context. See StructureContext
Optionalspec: ListItemInputReadonly[serializableBrand consumed by isSerializable (avoids circular instanceof imports)
Set list item child
list item child. See UnserializedListItemChild
list item builder based on child provided. See ListItemBuilder
Clone list item builder
OptionalwithSpec: PartialListItempartial list item options. See PartialListItem
list item builder based on context and spec provided. See ListItemBuilder
Get i18n key and namespace used to populate the localized title
the i18n key and namespace used to populate the localized title
Check if list item should show a live document count
true if it should show the count, false if not, undefined if not set
Check if list item should show icon
true if it should show the icon, false if not, undefined if not set
Set the i18n key and namespace used to populate the localized title.
the key and namespaced used to populate the localized title.
component builder based on i18n key and ns provided
Set list item icon
list item builder based on icon provided. See ListItemBuilder
Set list item ID
list item builder based on ID provided. See ListItemBuilder
Set list item schema type
list item schema type. See SchemaType
list item builder based on schema type provided. See ListItemBuilder
Serialize list item builder
serialization options. See ListItemSerializeOptions
list item node based on path provided in options. See ListItem
Set if list item should show a live document count.
The badge counts every document of the item's schema type. It is withheld, with a development warning, unless the item resolves a document schema type and its child is proven to list every document of that type: the built-in document type child, or a document list carrying the default whole-type query at the default api version.
list item builder based on showCount provided. See ListItemBuilder
Set if list item should show icon
list item builder based on showIcon provided. See ListItemBuilder
Configure the list item to render a singleton.
Sugar for declaring a list item with sensible defaults derived from the singleton definition:
id defaults to the singleton definition id.title defaults to the definition's title, falling back to the schema
type's title. Singletons sharing a schema type therefore share a title
unless their definitions set one—list item ids must be unique, titles
need not be.icon defaults to the definition's icon, falling back to the schema
type's icon.child defaults to a S.document().singleton(<id>) node.schemaType is set to the definition's schema type.Each default can be overridden via the standard list-item chain
(.title(...), .icon(...), .id(...), .child(...))—before or after
this call.
A SerializeError is thrown immediately if no singleton definition exists
for the provided id.
the singleton definition id
list item builder configured for the singleton
Set list item title
list item builder based on title provided. See ListItemBuilder
Class for building list items