tiel 0.0.2
tiel: ^0.0.2 copied to clipboard
jQuery-style helper for manipulating Titanium Views
tiel #
jQuery-style helper for manipulating Titanium Views. Only works on Dart Titanium applications
Usage #
import 'package:tiel/el.dart';
void main() {
el('window')
.attr('backgroundColor', 'white')
.append(
el('label')
.attr('text', 'Hello World !')
)
.open();
}
Create element #
el('button');
Append child #
Element button = el('button');
el('view').append(button);
Set/Get attribute #
Element button = el('button');
button.attr('color', 'blue');
print(button.attr('color'))