Dropdown

com.alecdorrington.laminarcomponents.Dropdown
object Dropdown

A drop-down of options, each sent under its code, one of them chosen.

Attributes

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

Members list

Value members

Concrete methods

def apply[A](options: List[(A, String)], code: A => String, chosen: Signal[A], choose: A => Unit, offered: A => Modifier[L.HtmlElement] = ...): L.HtmlElement

Renders a select offering each option in its wording, telling choose of every pick.

Renders a select offering each option in its wording, telling choose of every pick.

Type parameters

A

An option.

Value parameters

choose

The callback given each option picked.

chosen

The option chosen.

code

The code each option is sent under, unique among them.

offered

Modifiers of each option's element, as to disable some.

options

The options, each with its wording, in order.

Attributes

Returns

The drop-down.