Combobox

works.iterative.ui.laminar.headless.Combobox
object Combobox

Headless combobox with autocomplete.

The combobox wraps existing elements to add the behavior.

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
Combobox.type

Members list

Type members

Classlikes

class Ctx[T](val initialValue: Option[T])

Attributes

Supertypes
class Object
trait Matchable
class Any
class ItemCtx[T](val value: T)(using ctx: Ctx[T])

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type ItemRender[T] = (ItemCtx[T]) ?=> T => L.HtmlElement
type Render[T] = (Ctx[T]) ?=> L.HtmlElement
type RenderInput[T] = (Ctx[T]) ?=> L.Input

Value members

Concrete methods

def apply[T](initialValue: Option[T] = ...)(content: () ?=> T): L.HtmlElement
def button[T](using ctx: Ctx[T])(but: () ?=> T): L.HtmlElement
def ctx[T](using c: Ctx[T]): Ctx[T]
def ictx[T](using c: ItemCtx[T]): ItemCtx[T]
def input[T](using ctx: Ctx[T])(displayValue: T => String)(inp: () ?=> T): L.Input
def option[T](using ctx: Ctx[T])(value: T)(opt: () ?=> T): L.HtmlElement
def options[T](using ctx: Ctx[T])(container: () ?=> T)(opt: () ?=> T): L.HtmlElement