Module

Lumi.Components.Select

Package
purescript-lumi-components
Repository
lumihq/purescript-lumi-components

#SelectProps Source

type SelectProps option = { allowMultiple :: Boolean, loadOnMount :: Boolean, loadOptions :: String -> Aff (Array option), onChange :: Array option -> Effect Unit, value :: Array option | SelectProps_Common option }

#SelectProps_Common Source

type SelectProps_Common :: Type -> Row Typetype SelectProps_Common option = (className :: String, disabled :: Boolean, id :: String, loading :: Boolean, name :: String, noResultsText :: String, optionRenderer :: option -> JSX, optionSort :: Maybe (String -> option -> option -> Ordering), placeholder :: String, searchable :: Boolean, style :: CSS, toSelectOption :: option -> SelectOption)

#SelectProps_Single Source

type SelectProps_Single option = { onChange :: Maybe option -> Effect Unit, options :: Array option, value :: Maybe option | SelectProps_Common option }

#SelectProps_SingleAsync Source

type SelectProps_SingleAsync option = { loadOptions :: String -> Aff (Array option), onChange :: Maybe option -> Effect Unit, value :: Maybe option | SelectProps_Common option }

#SelectProps_Multi Source

type SelectProps_Multi option = { onChange :: Array option -> Effect Unit, options :: Array option, value :: Array option | SelectProps_Common option }

#SelectProps_MultiAsync Source

type SelectProps_MultiAsync option = { loadOptions :: String -> Aff (Array option), onChange :: Array option -> Effect Unit, value :: Array option | SelectProps_Common option }

#select Source

select :: forall option. SelectProps option -> JSX

#singleSelect Source

singleSelect :: forall option. SelectProps_Single option -> JSX

#asyncSingleSelect Source

asyncSingleSelect :: forall option. SelectProps_SingleAsync option -> JSX

#multiSelect Source

multiSelect :: forall option. SelectProps_Multi option -> JSX

#asyncMultiSelect Source

asyncMultiSelect :: forall option. SelectProps_MultiAsync option -> JSX

#styles Source

Re-exports from Lumi.Components.Select.Backend

#SelectOptions Source

data SelectOptions option

Constructors

Instances

#SelectOption Source

type SelectOption = { label :: String, value :: String }

#SelectBackendProps Source

type SelectBackendProps option = { allowMultiple :: Boolean, disabled :: Boolean, isOpen :: Maybe Boolean, loadOnMount :: Boolean, loadOptions :: String -> Aff (Array option), onChange :: Array option -> Effect Unit, optionSort :: Maybe (String -> option -> option -> Ordering), render :: { addSelectedOption :: option -> Effect Unit, closeSelect :: Effect Unit, focusedIndex :: Maybe Int, isActive :: Boolean, isOpen :: Boolean, keydownEventHandler :: Event -> Effect Unit, openSelect :: Effect Unit, options :: SelectOptions option, removeAllSelectedOptions :: Effect Unit, removeSelectedOption :: option -> Effect Unit, searchTerm :: String, setSearchTerm :: String -> Effect Unit } -> JSX, toSelectOption :: option -> SelectOption, value :: Array option }

#selectBackend Source

selectBackend :: forall option. SelectBackendProps option -> JSX
Modules
JSS
Lumi.Components
Lumi.Components.Badge
Lumi.Components.Border
Lumi.Components.Breadcrumb
Lumi.Components.Button
Lumi.Components.ButtonGroup
Lumi.Components.Card
Lumi.Components.CardGrid
Lumi.Components.Color
Lumi.Components.Column
Lumi.Components.Details
Lumi.Components.Divider
Lumi.Components.DropdownButton
Lumi.Components.EditableTable
Lumi.Components.FetchCache
Lumi.Components.FixedPrecisionInput
Lumi.Components.Form
Lumi.Components.Form.Defaults
Lumi.Components.Form.Internal
Lumi.Components.Form.Table
Lumi.Components.Form.Validation
Lumi.Components.Icon
Lumi.Components.Images
Lumi.Components.Input
Lumi.Components.InputGroup
Lumi.Components.LabeledField
Lumi.Components.Layouts
Lumi.Components.Layouts.Centered
Lumi.Components.Layouts.OneColumnWithHeader
Lumi.Components.Layouts.Tabs
Lumi.Components.Link
Lumi.Components.List
Lumi.Components.Loader
Lumi.Components.Lockup
Lumi.Components.Modal
Lumi.Components.NativeSelect
Lumi.Components.Navigation
Lumi.Components.Orientation
Lumi.Components.Pagination
Lumi.Components.Pill
Lumi.Components.Progress
Lumi.Components.Responsive
Lumi.Components.Row
Lumi.Components.Select
Lumi.Components.Select.Backend
Lumi.Components.Size
Lumi.Components.Slider
Lumi.Components.Spacing
Lumi.Components.Status
Lumi.Components.StatusSlat
Lumi.Components.Styles
Lumi.Components.Svg
Lumi.Components.Tab
Lumi.Components.Table
Lumi.Components.Table.FilterDropdown
Lumi.Components.Text
Lumi.Components.Textarea
Lumi.Components.Toast
Lumi.Components.Tooltip
Lumi.Components.Upload
Lumi.Components.Wizard
Lumi.Components.ZIndex
Lumi.Components2.Box
Lumi.Components2.Button
Lumi.Components2.ButtonGroup
Lumi.Components2.Clip
Lumi.Components2.Image
Lumi.Components2.Link
Lumi.Components2.PasswordStrength
Lumi.Components2.QRCode
Lumi.Components2.ScrollObserver
Lumi.Components2.Slat
Lumi.Components2.Tabs
Lumi.Components2.Text
Lumi.Styles
Lumi.Styles.Border
Lumi.Styles.Box
Lumi.Styles.Clip
Lumi.Styles.Link
Lumi.Styles.Loader
Lumi.Styles.Responsive
Lumi.Styles.Slat
Lumi.Styles.Theme