dom_tools 1.2.1 copy "dom_tools: ^1.2.1" to clipboard
dom_tools: ^1.2.1 copied to clipboard

outdated

DOM rich elements and tools

dom_tools #

DOM rich elements and tools

Usage #

A simple usage example:

import 'package:dom_tools/dom_tools.dart';

main() {

  // Example of an image that only loads when visualized in viewport: 

  TrackElementInViewport tracker = TrackElementInViewport() ;
  var imageElement = ImageElement() ;
  
  tracker.track(imageElement, onEnterViewport: (elem) {
    imageElement.src = 'http://api.host/path/to/image' ;
  });

}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Author #

Graciliano M. Passos: gmpassos@GitHub.

License #

Dart free & open-source license.

3
likes
0
pub points
77%
popularity

Publisher

unverified uploader

DOM rich elements and tools

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl

More

Packages that depend on dom_tools