tiel

jQuery-style helper for manipulating Titanium Views


License
BSD-2-Clause

Documentation

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'))