platform/packages/jael/jael_web/lib/src/dom_builder.dart
2021-06-20 20:37:20 +08:00

14 lines
314 B
Dart

abstract class DomBuilder<T> {
DomBuilderElement<T> append(
String tagName, void Function(DomBuilderElement<T>) f);
void text(String value);
}
abstract class DomBuilderElement<T> extends DomBuilder<T> {
void attr(String name, [String? value]);
void attrs(Map<String, String> map);
T close();
}