polymer_app_layout_template 0.0.12
polymer_app_layout_template: ^0.0.12 copied to clipboard
Polymer application template with responsive Material Design and routing
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:
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.
Next Step #
- Define and pass parameter in path url
- Add sub path