[{"name":"Example","comment":" This module is designed to make certain kinds of example easier to understand by ommitting some of the boring details and yet making them attractive.\n\n\n## Common Views\n\nThese views help flesh out some of the views for common things that would needlesly complicate an application:\n\n@docs loading, error\n\n\n## Example Applications\n\nThese are application templates that provide simple interactive functionality for certain kinds of examples. They are quite specific to their usecase, so it is worth considering if they are appropriate to the example at hand or wheather they should be custom built.\n\n\n### Multi-view Examples\n\nSome examples consist of multiple tabs (each with its own URL) that simply vary some configuration. This provides a simplified application template to make an example like this.\n\n@docs switchableViews, linkTo, navigation\n\n\n### Configurable Examples\n\nSome examples can be made interactive by allowing the user to configure parts of the view with some parameters. This application type will handle managing the model and messages for you. It includes an automatic form builder as well as updating the serialized representation to the URL.\n\n@docs configurable, Configuration, configuration, verticalPanel, intSlider, floatSlider, colorPicker, ConfigMsg\n\n","unions":[{"name":"ConfigMsg","comment":" ","args":["model"],"cases":[]},{"name":"Configuration","comment":" This type stores how to modify the model.\n","args":["model"],"cases":[]}],"aliases":[],"values":[{"name":"colorPicker","comment":" Modify an Color field in the model. Takes a label, a getter, and a setter. Renders as a color picker in the form.\n","type":"String.String -> (model -> Color.Color) -> (Color.Color -> model -> model) -> Example.Field model"},{"name":"configurable","comment":" An application type where the view will simply render some output based on some input that we want the user to modify.\n\nThis application will take care of dealing with the model and messages as well as persisting the model state to the URL and then restoring it on reload.\n\n","type":"Example.Configuration model -> (model -> Html.Html (Example.ConfigMsg model)) -> Platform.Program () ( Browser.Navigation.Key, model ) (Example.ConfigMsg model)"},{"name":"configuration","comment":" Accepts the initial (or default) model as well as a list of fields that describe how to modify the model.\n","type":"model -> List.List (Example.Field model) -> Example.Configuration model"},{"name":"error","comment":" Shows a friendly (albeit generic) error message based on an HTTP.Error type. Useful for showing when an HTTP request fails.\n\nYou can optionally give it a message. If you do, then certain errror will get a \"Try again?\" button for retrying the request.\n\n","type":"Maybe.Maybe msg -> Http.Error -> Html.Html msg"},{"name":"floatSlider","comment":" Modify an float field in the model. Takes a label, a getter, a setter and min/max bounds on the value. Renders as a slider in the form.\n","type":"String.String -> (model -> Basics.Float) -> (Basics.Float -> model -> model) -> Basics.Float -> Basics.Float -> Example.Field model"},{"name":"intSlider","comment":" Modify an int field in the model. Takes a label, a getter, a setter and min/max bounds on the value. Renders as a slider in the form.\n","type":"String.String -> (model -> Basics.Int) -> (Basics.Int -> model -> model) -> Basics.Int -> Basics.Int -> Example.Field model"},{"name":"linkTo","comment":" Makes a link to a particular identifier (i.e. this is a wrapper for the `<a>` element, but it will take care of setting up the approriate `href` attribute.)\n","type":"String.String -> List.List (Html.Attribute msg) -> List.List (Html.Html msg) -> Html.Html msg"},{"name":"loading","comment":" Displays a loading spinner indicating an operation in process.\n","type":"List.List (Html.Attribute msg) -> Html.Html msg"},{"name":"navigation","comment":" Shows a simple tab bar with a title and links to the individual views.\n","type":"String.String -> List.List ( String.String, a ) -> Html.Html msg"},{"name":"switchableViews","comment":" A simple app that shows different tabs based on a string identifier. This identifier will be as the fragment in the URL.\n","type":"List.List ( String.String, a ) -> (a -> Html.Html msg) -> Platform.Program () Example.Model Example.Msg"},{"name":"verticalPanel","comment":" Renders a form for changing the configuration in a vertical layout.\n\nThe first argument is a heading for the form.\n\n","type":"String.String -> Example.Configuration model -> model -> Html.Html (Example.ConfigMsg model)"}],"binops":[]}]