This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
An experimental alternative to Graphics.Element and elm-html
version 2.1.0
license MIT
native-modules False
elm-version 0.16.0 <= v < 0.17.0
Tag 2.1.0
Committed At 2016-02-22 22:19:18 UTC
evancz/start-app 2.0.2 <= v < 3.0.0 2.0.2
evancz/elm-svg 2.0.1 <= v < 3.0.0 2.0.1
evancz/elm-html 4.0.2 <= v < 5.0.0 4.0.2
evancz/elm-effects 2.0.1 <= v < 3.0.0 2.0.1
elm-lang/core 3.0.0 <= v < 4.0.0 3.0.0

README

An experimental alternative to Graphics.Element and elm-html

The concept being explored by this rendering library is to have the core element type be a function of {x,y,w,h} -> rendering instead of simply being a rendering. This leads to some interesting properties with respect to creating dynamic layouts, and thus far appears to give a nice API for quickly creating and modifying layouts. It also provides a mechanism for creating reusable layout logic.

Usage

elm-layout is still under development. If you would like to use it, follow these steps:

  1. Fork this project

  2. Use git subtree to add elm-layout to your project

    git subtree add -P lib/elm-layout git@github.com:avh4-experimental/elm-layout.git master --squash
    
  3. Add ./lib/elm-layout/src/ to the list of source-directories in your project's elm-package.json.

Example

import Layout
import Window

view =
    Layout.top 48
        (Layout.placeholder "header")
        ( [1..25]
            |> List.map (\n -> "Item " ++ (toString n))
            |> List.map Layout.placeholder
            |> Layout.list 32
            |> Layout.inset 8
        )

main = Layout.toFullWindow (Signal.constant view)