incremental_dom_bindings 1.0.0+1 copy "incremental_dom_bindings: ^1.0.0+1" to clipboard
incremental_dom_bindings: ^1.0.0+1 copied to clipboard

outdated

Dart bindings for the Incremental DOM library. Incremental DOM is a library for expressing and applying updates to DOM trees incrementally.

example/main.dart

import 'dart:html';

import 'package:incremental_dom_bindings/incremental_dom_bindings.dart';

void main() {
  // query the element to patch
  final root = querySelector('#root');

  // patch the element
  patch(root, (_) {
    // open a div element with the attributes id and style
    elementOpen('div', null, [
      'id',
      'testId',
      'style',
      {'color': 'red'}
    ]);

    // add a text inside the div element
    text('Hello World');

    // close the div element
    elementClose('div');
  });
}
1
likes
35
pub points
0%
popularity

Publisher

verified publisherblimster.net

Dart bindings for the Incremental DOM library. Incremental DOM is a library for expressing and applying updates to DOM trees incrementally.

Repository

License

MIT (license)

More

Packages that depend on incremental_dom_bindings