mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-22 21:51:25 +03:00
Update docs.
This commit is contained in:
parent
a58f8e6710
commit
1fec3d93d9
@ -27,6 +27,8 @@ type alias PagesMsg userMsg =
|
||||
|
||||
{-|
|
||||
|
||||
import Form
|
||||
import Pages.Form
|
||||
import PagesMsg exposing (PagesMsg)
|
||||
|
||||
type Msg
|
||||
@ -46,10 +48,14 @@ type alias PagesMsg userMsg =
|
||||
[ onClick (PagesMsg.fromMsg ToggleMenu) ]
|
||||
[]
|
||||
|
||||
-- `Form.renderHtml` gives us `Html (PagesMsg msg)`, so we don't need to wrap its Msg type
|
||||
-- `Pages.Form.renderHtml` gives us `Html (PagesMsg msg)`, so we don't need to wrap its Msg type
|
||||
, logoutForm
|
||||
|> Form.withOnSubmit (\_ -> NewItemSubmitted)
|
||||
|> Form.renderHtml "logout" [] (\_ -> Nothing) app Nothing
|
||||
|> Pages.Form.renderHtml []
|
||||
Pages.Form.Serial
|
||||
(Form.options "logout"
|
||||
|> Form.withOnSubmit (\_ -> NewItemSubmitted)
|
||||
)
|
||||
app
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user