dom_builder_dart_html
library
Functions
-
$a({Object? id, Object? classes, Object? style, Map<String, String>? attributes, String? href, String? target, Object? content, bool? hidden, })
→ DOMElement
-
Creates an
a
node.
-
$asyncContent({Object? loading, Future? future, Future function()?})
→ DOMAsync
-
Creates a
div
node with display: inline-block
.
-
$br({int amount = 1, })
→ DOMElement
-
Creates a
br
node.
-
$button({Object? id, Object? name, Object? classes, Object? style, String? type, Map<String, dynamic>? attributes, Object? content, bool? hidden, bool disabled = false, })
→ DOMElement
-
Creates a
button
node.
-
$caption({Object? id, Object? classes, Object? style, String? captionSide, Map<String, String>? attributes, Object? content, bool? hidden, })
→ CAPTIONElement
-
Creates a
caption
node.
-
$checkbox({Object? id, Object? name, Object? classes, Object? style, Object? placeholder, Map<String, String>? attributes, bool? checked, Object? value, bool? hidden, bool disabled = false, })
→ CHECKBOXElement
-
Creates an
input
node of type checkbox
.
-
$div({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DIVElement
-
Creates a
div
node.
-
$divCenteredContent({Object? classes, String? style, String width = '100%', String height = '100%', String? cellsClasses, String? cellsStyle, String? cellSpacing, int? cellsPerRow, List? cells, List? rows, Object? content})
→ DIVElement
-
Creates a
div
that centers vertically and horizontally using display
table
and table-cell
.
-
$divHTML(Object? html)
→ DIVElement?
-
Creates a
div
node from HTML.
-
$divInline({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DIVElement
-
Creates a
div
node with display: inline-block
.
-
$dsx(dynamic o)
→ List<DOMNode>
-
Parses
o
to a List<DOMNode>, resolving DSX objects.
-
$dsxCall(Function f, [dynamic a1, dynamic a2, dynamic a3, dynamic a4, dynamic a5, dynamic a6, dynamic a7, dynamic a8, dynamic a9, dynamic a10])
→ DSX
-
Converts a call to
f
to a DSX object.
-
$emsp([int length = 1])
→ String
-
-
Creates a
footer
node.
-
$form({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
form
node.
-
Creates a
header
node.
-
$hr({Object? id, Object? classes, Object? style, Map<String, String>? attributes, bool? hidden, })
→ DOMElement
-
Creates a
hr
node.
-
$html<T extends DOMNode>(Object? html)
→ List<DOMNode>
-
Returns a list of nodes from
html
.
-
$htmlRoot(Object? html, {String? defaultRootTag, bool? defaultTagDisplayInlineBlock})
→ DOMElement?
-
-
$img({Object? id, Object? classes, Object? style, Map<String, String>? attributes, String? src, Future<String?>? srcFuture, String? title, Object? content, bool? hidden, })
→ DOMElement
-
Creates an
img
node.
-
$input({Object? id, Object? name, Object? classes, Object? style, Object? type, Object? placeholder, Map<String, String>? attributes, Object? value, bool? hidden, bool disabled = false, })
→ INPUTElement
-
Creates an
input
node.
-
$label({Object? id, String? forID, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
label
node.
-
$li({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
li
node.
-
$nav({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
nav
node.
-
$nbsp([int length = 1])
→ String
-
-
$ol({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
ol
node.
-
$option({Object? classes, Object? style, Map<String, String>? attributes, Object? value, String? label, bool? selected, bool disabled = false, Object? text, Object? valueAndText})
→ OPTIONElement
-
Creates an
option
node.
-
$p({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
p
node.
-
$radiobutton({Object? id, Object? name, Object? classes, Object? style, Object? placeholder, Map<String, String>? attributes, Object? value, bool? hidden, bool disabled = false, })
→ INPUTElement
-
Creates an
input
node of type radio
.
-
$select({Object? id, Object? name, Object? classes, Object? style, Map<String, String>? attributes, Object? options, Object? selected, bool? multiple, bool? hidden, bool disabled = false, })
→ SELECTElement
-
Creates an
select
node.
-
$span({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
span
node.
-
$table({Object? id, Object? classes, Object? style, Object? thsStyle, Object? tdsStyle, Map<String, String>? attributes, Object? caption, Object? head, Object? body, bool? hidden, })
→ TABLEElement
-
Creates a
table
node.
-
$tag(String tag, {Object? id, Object? classes, Object? style, Map<String, dynamic>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a node with
tag
.
-
$tagHTML<T extends DOMElement>(Object? html)
→ T?
-
Creates a tag node from
html
.
-
$tags<T>(String tag, Iterable<T>? iterable, [ContentGenerator<T>? elementGenerator])
→ List<DOMElement>
-
Creates a list of nodes of same
tag
.
-
$tbody({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? rows, bool? hidden, bool commented = false})
→ TBODYElement
-
Creates a
tbody
node.
-
$td({Object? id, Object? classes, Object? style, Map<String, String>? attributes, int? colspan, int? rowspan, Object? content, bool? hidden, })
→ TDElement
-
Creates a
td
node.
-
$textarea({Object? id, Object? name, Object? classes, Object? style, Object? cols, Object? rows, Map<String, String>? attributes, Object? content, bool? hidden, bool disabled = false, })
→ TEXTAREAElement
-
Creates a
textarea
node.
-
Creates a
tfoot
node.
-
$th({Object? id, Object? classes, Object? style, Map<String, String>? attributes, int? colspan, int? rowspan, String? abbr, String? scope, Object? content, bool? hidden, })
→ THElement
-
Creates a
th
node.
-
$thead({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? rows, bool? hidden, })
→ THEADElement
-
Creates a
thread
node.
-
$tr({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? cells, bool? hidden, })
→ TRowElement
-
Creates a
tr
node.
-
$ul({Object? id, Object? classes, Object? style, Map<String, String>? attributes, Object? content, bool? hidden, })
→ DOMElement
-
Creates a
ul
node.
-
$validate<T extends DOMNode>({bool preValidate()?, DOMNodeValidator<T>? validate, T? node, DOMNodeInstantiator<T>? instantiator, bool rethrowErrors = false})
→ T?
-
Validates a DOMNode before return it.
-
asNodeSelector(Object? selector)
→ NodeSelector?
-
-
computeCalcOperationSymbol(CalcOperation op, num a, num b)
→ num
-
-
createDOMGeneratorDartHTML<T>()
→ DOMGeneratorDartHTML<T>
-
-
createElement(String tag, [DOMElement? domElement])
→ Element?
-
Creates an Element using
tag
name.
-
createInputElement([String? type])
→ InputElementBase
-
-
createTableCaption(Object? caption)
→ CAPTIONElement?
-
-
createTableCells(Object? rowCells, [])
→ List<TABLENode>
-
-
createTableContent(dynamic content, dynamic caption, dynamic head, dynamic body, })
→ List
-
-
createTableEntry(Object? entry, {})
→ TABLENode?
-
-
createTableRow(Object? rowCells, [])
→ TRowElement
-
-
createTableRows(Object? rows, )
→ List<TRowElement>
-
-
domBuilderLog(String message, {bool warning = false, Object? error, StackTrace? stackTrace})
→ void
-
-
getCalcOperation(String? op)
→ CalcOperation?
-
-
getCalcOperationSymbol(CalcOperation? op)
→ String?
-
-
getCSSBackgroundAttachmentName(CSSBackgroundAttachment? clip)
→ String?
-
-
getCSSBackgroundBoxName(CSSBackgroundBox? clip)
→ String?
-
-
getCSSBackgroundRepeatName(CSSBackgroundRepeat? repeat)
→ String?
-
-
getCSSBorderStyleName(CSSBorderStyle borderStyle)
→ String?
-
-
getCSSUnitName(CSSUnit? unit, [CSSUnit? def])
→ String?
-
-
getDOMTemplateCmpOperator(DOMTemplateCmp? cmp)
→ String
-
-
hasHTMLEntity(String s)
→ bool
-
-
hasHTMLTag(String s)
→ bool
-
-
isCSSViewportUnit(CSSUnit unit)
→ bool
-
-
isDOMBuilderDirectHelper(Object? f)
→ bool
-
Returns
true
if f
is a DOM Builder helper, like $div
and $br
.
-
isHTMLElement(String s)
→ bool
-
-
parseCSSBackgroundAttachment(String attachment)
→ CSSBackgroundAttachment?
-
-
parseCSSBackgroundBox(String clip)
→ CSSBackgroundBox?
-
-
parseCSSBackgroundRepeat(String repeat)
→ CSSBackgroundRepeat?
-
-
parseCSSBorderStyle(String? borderStyle)
→ CSSBorderStyle?
-
-
parseCSSUnit(String? unit, [CSSUnit? def])
→ CSSUnit?
-
-
parseDOMTemplateCmp(Object? cmp)
→ DOMTemplateCmp?
-
-
parseHTML(String? html)
→ List<DOMNode>?
-
Parses a
html
to nodes.
-
parseListOfStrings(Object? s, Pattern delimiter, [bool trim = true])
→ List<String>
-
Parses
s
as a flat List<String>.
-
possiblyWithHTML(String? s)
→ bool
-
-
possiblyWithHTMLEntity(String? s)
→ bool
-
-
possiblyWithHTMLTag(String? s)
→ bool
-
-
toIntlMessageResolver(Object? resolver)
→ IntlMessageResolver?
-
Converts
resolver
to IntlMessageResolver.
Typedefs
-
ContentGenerator<T>
= dynamic Function(T? entry)
-
-
DOMElementGenerator<T>
= T Function(Object? parent)
-
-
DOMElementGeneratorFunction<T>
= T Function()
-
-
DOMNodeInstantiator<T extends DOMNode>
= T? Function()
-
-
DOMNodeValidator<T extends DOMNode>
= bool Function(T? node)
-
-
ElementGeneratedMatchingFunction<T>
= bool Function(T element)
-
-
ElementGeneratorFunction<T>
= T Function(DOMGenerator<T> domGenerator, String? tag, T? parent, Map<String, DOMAttribute> attributes, T? contentHolder, List<DOMNode>? contentNodes, DOMContext<T>? context)
-
-
ElementRevertFunction<T>
= DOMElement Function(DOMGenerator<T> domGenerator, DOMTreeMap<T>? treeMap, DOMElement? domParent, T? parent, T? node)
-
-
IntlMessageResolver
= String? Function(String key, [Map<String, dynamic>? parameters])
-
-
NamedElementGenerator<T>
= T Function(String name, DOMGenerator<T>? domGenerator, DOMTreeMap<T> treeMap, DOMElement? domParent, Object? parent, String? tag, Map<String, DOMAttribute> attributes)
-
-
NodeSelector
= bool Function(DOMNode? node)
-
-
QueryElementProvider
= dynamic Function(String query)
-