updated doc

This commit is contained in:
Unknown 2020-03-18 21:32:13 +01:00
parent d4a7221f15
commit ce7712fc3e
2 changed files with 5362 additions and 2593 deletions

File diff suppressed because it is too large Load Diff

62
src/Material/Widget.elm Normal file
View 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