Mixins / foldkit-mixins-ui

CollapseFeature

interface · packages/mixins-ui/src/breadcrumb.ts:88

interface CollapseFeature<Message> extends CollapseParts {
  readonly draw: (input: CollapseDraw<Message>, h: HtmlBuilder<Message>) => Html
  readonly onExpand?: undefined
}

How a folded trail draws its ellipsis, built by the application and handed to the view as collapse. BreadcrumbMenu.make is one, a Menu of the hidden steps; one of the application's own (a Popover, a dialog) is a value of this shape. It lives apart from the trail so a page that never folds into a Menu never loads Menu.

Members

CollapseFeature.draw

property · packages/mixins-ui/src/breadcrumb.ts:90

readonly draw: (input: CollapseDraw<Message>, h: HtmlBuilder<Message>) => Html

The li's content: the ellipsis, in the trail's ellipsis slot or the look of it.

CollapseFeature.onExpand

property · packages/mixins-ui/src/breadcrumb.ts:91

readonly onExpand?: undefined