hariroshan/elm-native/1.0.0

NOTE: the latest version is 1.0.1

Native.Page

Page is a UI component that represents an application screen. NativeScript apps typically consist of one or more <Page> that wrap content such as an <ActionBar> and other UI widgets. refer

Functions

page : (Bool -> msg) -> List (Attribute msg) -> Html msg -> Html msg

Page takes onBackNavigation which should be used to SyncFrame

Example SyncFrame bool -> ( { model | rootFrame = Frame.handleBack bool model.rootFrame }, Cmd.none )

Page takes only one child

pageWithActionBar : (Bool -> msg) -> List (Attribute msg) -> Html msg -> Html msg -> Html msg

Similar to page but actionBar support