mirror of
https://github.com/Orasund/elm-ui-widgets.git
synced 2024-11-22 13:14:10 +03:00
updated doc
This commit is contained in:
parent
d4a7221f15
commit
ce7712fc3e
7847
docs/index.html
7847
docs/index.html
File diff suppressed because it is too large
Load Diff
62
src/Material/Widget.elm
Normal file
62
src/Material/Widget.elm
Normal file
@ -0,0 +1,62 @@
|
||||
module Material.Widget exposing (Widget)
|
||||
|
||||
|
||||
type Icon
|
||||
= Plus
|
||||
|
||||
|
||||
type ButtonEmphasis
|
||||
= Low
|
||||
| Default -- can be removed
|
||||
| High
|
||||
|
||||
|
||||
type ButtonSort
|
||||
= TextButton { emphasis : ButtonEmphasis, label : String }
|
||||
| IconButton
|
||||
|
||||
|
||||
type Button msg
|
||||
= Button
|
||||
{ sort : ButtonSort
|
||||
, enabled : Bool
|
||||
, onClick : msg
|
||||
, icon : Maybe Icon
|
||||
}
|
||||
|
||||
|
||||
type ToggleButton msg state
|
||||
= ToggleButton
|
||||
{ options :
|
||||
List
|
||||
( state
|
||||
, { enabled : Bool
|
||||
, onClick : state -> msg
|
||||
, icon : Icon
|
||||
}
|
||||
)
|
||||
, selected : Maybe state
|
||||
}
|
||||
|
||||
|
||||
type FAButton msg
|
||||
= FAButton
|
||||
{ onClick : msg
|
||||
, icon : Icon
|
||||
, label : Maybe String
|
||||
}
|
||||
|
||||
|
||||
type SpeedDial msg
|
||||
= SpeedDial
|
||||
{ options : List (FAButton msg)
|
||||
, icon : Icon
|
||||
, label : Maybe String
|
||||
}
|
||||
|
||||
|
||||
type Widget msg state
|
||||
= ButtonWidget (Button msg)
|
||||
| ToggleButtonWidget (ToggleButton msg state)
|
||||
| FAButtonWidget ButtonSort (FAButton msg)
|
||||
| SpeedDialWidget ButtonSort (FAButton msg) -- can be removed
|
Loading…
Reference in New Issue
Block a user