static_dom library

A simple static HTML DOM builder library for Dart

Classes

A
BackgroundColor
BackgroundImage
Body
Checkbox
Color
CssItem
Div
Dom
DomBacked
DomList
DomMixin
Heading
Height
Html
Image
NullDom
Pre
RawStyle
Render
Style
Dom item for
StyleItem
StyleText
Table
Target
Td
Text
TextBlock
Th
Tr
TrChild
Width

Functions

a(String href, {List<Dom> children, Target target, String id, Iterable<String> classes, Iterable<StyleItem> styles, Map<String, bool> classIf}) A
backgroundColor(String color) BackgroundColor
backgroundColorRGB(int r, int g, int b) BackgroundColor
backgroundColorRGBA(int r, int g, int b, num a) BackgroundColor
backgroundImage(String image) BackgroundImage
backgroundImageUrl(String image) BackgroundImage
body({List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Body
c({String id, Iterable<String> classes, Iterable<StyleItem> styles, bool autofocus = false, bool checked = false, bool disabled = false, bool indeterminate = false, String name, bool required = false, String value}) Checkbox
color(String color) Color
colorRGB(int r, int g, int b) Color
colorRGBA(int r, int g, int b, num a) Color
div({List<Dom> children, String id, Iterable<String> classes, String clazz, Iterable<StyleItem> styles}) Div
forList<T, D extends Dom>(List<T> data, ForListMaker<T, D> maker) List<D>
forMap<K, V, D extends Dom>(Map<K, V> data, ForMapMaker<K, V, D> maker) List<D>
h1({dynamic title, List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Heading
h2({dynamic title, List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Heading
h3({dynamic title, List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Heading
h4({dynamic title, List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Heading
h5({dynamic title, List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Heading
h6({dynamic title, List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Heading
height(num height, [String unit]) Height
html(Head head, Body body, {List<Dom> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Html
Shorthand function to create A element
img(String src, {String id, Iterable<String> classes, Iterable<StyleItem> styles, int width, int height}) Image
imgIter(List<String> srcs, {Iterable<String> classes, Iterable<StyleItem> styles, int width, int height}) List<Image>
pre(String text, {String id, Iterable<String> classes, Iterable<StyleItem> styles, Map<String, bool> classIf}) Pre
Shorthand function to create Pre dom element
rawStyle(String style, String value) RawStyle
style(List<CssItem> children, {String id, Iterable<String> classes}) Style
styleText(String text, {String id, Iterable<String> classes}) StyleText
t(String text, {String id, Iterable<String> classes, Iterable<StyleItem> styles}) TextBlock
table(List<Tr> children, {String id, Iterable<String> classes, Iterable<StyleItem> styles}) Table
tableIter(List<Tr> rows, {Tr header, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Table
td(Dom child, {String id, Iterable<String> classes, Iterable<StyleItem> styles, Map<String, bool> classIf}) Td
text(dynamic text) Text
th(Dom child, {String id, Iterable<String> classes, Iterable<StyleItem> styles}) Th
tIter(List<String> texts, {Iterable<String> classes, Iterable<StyleItem> styles}) List<TextBlock>
tr({List<TrChild> children, String id, Iterable<String> classes, Iterable<StyleItem> styles}) Tr
width(num width, [String unit]) Width

Typedefs

ForListMaker<T, D extends Dom>(int i, T data) → D
ForMapMaker<K, V, D extends Dom>(K key, V val) → D
ItemMaker<T>(T data) Dom