hariroshan / elm-native / Native.Page

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

Functions

modal : (Basics.Bool -> msg) -> Basics.Bool -> Html msg -> Html msg

Used to make modal page

page : (Basics.Bool -> msg) -> List (Html.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 : (Basics.Bool -> msg) -> List (Html.Attribute msg) -> Html msg -> Html msg -> Html msg

Similar to page but actionBar support