polymer_app_layout_templates

Polymer application template with responsive Material Design and routing

Application Layout Templates (Dart)

Use the application layout templates provided and start building responsive applications.

Application Layout Templates Viewer

Templates:

Left Nav + View

Left Nav + Card Feed

Left Nav + List + Detail

List Left + Card over Extended Header

Usage

Use polymer_route_behavior to implement routing.

Available for: - Left Nav + View - List Left + Card over Extended Header - Layout Nav Header

Example:

awesome_polymer_element.dart:

import 'package:polymer_app_layout_template/app_layout.dart'';

...

// route
@property
List<Page> get pages => [
    new Page("Home", "home", "home-page", isDefault: true),
    new Page("One", "one", "page-one"),
    new Page("Two", "two", "page-two", menu: false)
];

...

// toolbar
@property
List get toolbarItems => [
    'toolbar-more-button' // or document.createElement('toolbar-more-button');
];

...

awesome_polymer_element.html:

 <layout-app pages="{{pages}}" toolbar-items="{{toolbarItems}}" layout-type="layout-nav-header"></layout-app>

The element field accept any HtmlElement.

Working example

Next Step

  • Define and pass parameter in path url
  • Add sub path

Libraries

polymer_app_layout

Created by lejard_h on 18/10/15.

polymer_app_layout.app_page
polymer_app_layout.device_layout_viewer

Created by lejard_h on 08/10/15.

polymer_app_layout.icon_behavior

Created by lejard_h on 18/10/15.

polymer_app_layout.layout_app

Created by lejard_h on 08/10/15.

polymer_app_layout.layout_device_view

Created by lejard_h on 08/10/15.

polymer_app_layout.layout_list_card_over

Created by lejard_h on 08/10/15.

polymer_app_layout.layout_nav_cards

Created by lejard_h on 08/10/15.

polymer_app_layout.layout_nav_header

Created by lejard_h on 08/10/15.

polymer_app_layout.layout_nav_list_detail

Created by lejard_h on 08/10/15.

polymer_app_layout.layout_nav_view

Created by lejard_h on 08/10/15.

polymer_app_layout.left_nav_behavior

Created by lejard_h on 18/10/15.

polymer_app_layout.toolbar_behavior

Created by lejard_h on 18/10/15.