| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Select
Synopsis
- data SelectProps action = SelectProps {
- selectId :: Maybe MisoString
- selectDisabled :: Bool
- selectClasses :: [MisoString]
- selectAttrs :: [Attribute action]
- defaultSelectProps :: SelectProps action
- data SelectMenuProps model action = SelectMenuProps {
- selectMenuId :: MisoString
- selectMenuLabel :: [View model action]
- selectMenuValue :: MisoString
- selectMenuDisabled :: Bool
- selectMenuScrollable :: Bool
- selectMenuTriggerClasses :: [MisoString]
- selectMenuAttrs :: [Attribute action]
- defaultSelectMenuProps :: SelectMenuProps model action
- select_ :: SelectProps action -> [View model action] -> View model action
- selectMenu_ :: SelectMenuProps model action -> [View model action] -> View model action
- selectOption_ :: Bool -> MisoString -> [View model action] -> View model action
- selectGroup_ :: MisoString -> MisoString -> [View model action] -> View model action
- selectUsage :: View model action
- selectSample :: View model action
- selectCodeSample :: View model action
- selectPropsApi :: View model action
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
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 #