Menu

works.iterative.ui.laminar.headless.Menu
object Menu

Headless menu.

The menu wraps existing elements to add the behavior.

It expects menu button, that will toggle the menu state, and show menu items.

Inspired by headlessui components, but lacks most of the functionality, especially the ARIA stuff.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Menu.type

Members list

Type members

Classlikes

class Ctx

Global menu context

Global menu context

Attributes

Supertypes
class Object
trait Matchable
class Any
class ItemCtx(using ctx: Ctx)

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type ItemRender = ItemCtx ?=> L.HtmlElement
type Render = Ctx ?=> L.HtmlElement

Value members

Concrete methods

def apply(content: Render): L.HtmlElement
def button(but: Render)(using ctx: Ctx): L.HtmlElement
def item(it: ItemRender)(using ctx: Ctx): L.HtmlElement
def items(el: Render)(using ctx: Ctx): L.HtmlElement