platform/packages/jael/jael_web/example/using_components.g.dart
thomashii@dukefirehawk.com 4a3b354c92 Fixed angel3_orm_generator
2022-12-17 17:59:00 +08:00

34 lines
882 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'using_components.dart';
// **************************************************************************
// JaelComponentGenerator
// **************************************************************************
abstract class _MyAppJaelTemplate implements Component<dynamic> {
@override
DomNode render() {
return h('div', {}, [
h('h1', {}, [text('Welcome to my app')]),
LabeledInput(name: "username")
]);
}
}
abstract class _LabeledInputJaelTemplate implements Component<dynamic> {
String? get name;
@override
DomNode render() {
return h('div', {}, [
h('label', {}, [
h('b', {}, [text(name.toString()), text(':')])
]),
h('br', {}, []),
h(
'input',
{'name': name, 'placeholder': "Enter ${name!}...", 'type': "text"},
[])
]);
}
}