mirror of
https://github.com/hariroshan/elm-native-library.git
synced 2024-12-02 23:35:02 +03:00
renamed frame to view
This commit is contained in:
parent
f736ac0b48
commit
6cf8af8cb9
@ -811,7 +811,7 @@ getPage model page =
|
||||
view : Model -> Native Msg
|
||||
view model =
|
||||
model.rootFrame
|
||||
|> Frame.frame [] (getPage model)
|
||||
|> Frame.view [] (getPage model)
|
||||
|
||||
|
||||
decodeCar : D.Decoder Car
|
||||
|
@ -371,7 +371,7 @@ getPage model page =
|
||||
view : Model -> Native Msg
|
||||
view model =
|
||||
model.rootFrame
|
||||
|> Frame.frame [] (getPage model)
|
||||
|> Frame.view [] (getPage model)
|
||||
|
||||
|
||||
subscriptions : Model -> Sub Msg
|
||||
|
@ -3,7 +3,7 @@ module Native.Frame exposing
|
||||
, TransitionCurve(..)
|
||||
, TransitionName(..)
|
||||
, defaultNavigationOptions
|
||||
, frame
|
||||
, view
|
||||
, goBack
|
||||
, goTo
|
||||
, handleBack
|
||||
@ -207,8 +207,8 @@ setClearHistory val mod =
|
||||
{ mod | clearHistory = Just val }
|
||||
|
||||
|
||||
frame : List (Attribute msg) -> (page -> Html msg) -> Model page -> Html msg
|
||||
frame attrs getPage frameModel =
|
||||
view : List (Attribute msg) -> (page -> Html msg) -> Model page -> Html msg
|
||||
view attrs getPage frameModel =
|
||||
let
|
||||
children =
|
||||
[ getPage frameModel.current ]
|
||||
|
Loading…
Reference in New Issue
Block a user