miso-ui
Safe HaskellNone
LanguageHaskell2010

Miso.UI.Select

Synopsis

Props

data SelectProps action Source #

Props for the native select_

Constructors

SelectProps 

Fields

defaultSelectProps :: SelectProps action Source #

Smart constructor for the native select

data SelectMenuProps model action Source #

Props for the popover-based selectMenu_ (basecoat JS select)

Constructors

SelectMenuProps 

Fields

defaultSelectMenuProps :: SelectMenuProps model action Source #

Smart constructor for the JS select

Views

select_ :: SelectProps action -> [View model action] -> View model action Source #

Native select. Children are native optgroup_ / option_ views.

selectMenu_ :: SelectMenuProps model action -> [View model action] -> View model action Source #

Select (popover listbox). Children are selectOption_ / selectGroup_ views.

selectOption_ :: Bool -> MisoString -> [View model action] -> View model action Source #

Option inside selectMenu_; the Bool marks the current selection

selectGroup_ Source #

Arguments

:: MisoString

group heading id

-> MisoString

heading text

-> [View model action] 
-> View model action 

Labelled group of options inside selectMenu_

Samples

selectUsage :: View model action Source #

Compact usage example (source of the kitchen sink Code tab)

selectSample :: View model action Source #

selectCodeSample :: View model action Source #

selectPropsApi :: View model action Source #