2019-03-23 22:02:57 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'using_components.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JaelComponentGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2023-05-26 23:27:47 +00:00
|
|
|
mixin _MyAppJaelTemplate implements Component<dynamic> {
|
2019-03-23 22:02:57 +00:00
|
|
|
@override
|
|
|
|
DomNode render() {
|
|
|
|
return h('div', {}, [
|
|
|
|
h('h1', {}, [text('Welcome to my app')]),
|
|
|
|
LabeledInput(name: "username")
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-26 23:27:47 +00:00
|
|
|
mixin _LabeledInputJaelTemplate implements Component<dynamic> {
|
2021-06-20 12:37:20 +00:00
|
|
|
String? get name;
|
2019-03-23 22:02:57 +00:00
|
|
|
@override
|
|
|
|
DomNode render() {
|
|
|
|
return h('div', {}, [
|
|
|
|
h('label', {}, [
|
|
|
|
h('b', {}, [text(name.toString()), text(':')])
|
|
|
|
]),
|
|
|
|
h('br', {}, []),
|
2022-12-17 09:59:00 +00:00
|
|
|
h(
|
|
|
|
'input',
|
|
|
|
{'name': name, 'placeholder': "Enter ${name!}...", 'type': "text"},
|
|
|
|
[])
|
2019-03-23 22:02:57 +00:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|