overwrite 0.3.3 copy "overwrite: ^0.3.3" to clipboard
overwrite: ^0.3.3 copied to clipboard

outdatedDart 1 only

Overwrite mode for text area elements in Dart

overwrite #

Overwrite mode for textarea elements in Dart

To put a textarea element into overwrite mode:

    var overwrite = new OverwriteElement(element);

To set the element back to normal editing:

  overwrite.setInputMode(OverwriteMode.INSERT);

To subscribe to change made to the element value by typing, cutting, pasting, setting the value programmatically, or by whitespace being added:

  overwrite.onOverwriteEvent.listen((event) {
    // set text in model
  });

New text typed into the textarea will overwrite the existing content instead of inserting it.

Overwrite also handles deleting and backspacing single characters and selections, cut, and paste.

When the textarea receives focus, overwrite pads the value with spaces to fill the client width of the element.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Overwrite mode for text area elements in Dart

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

logging

More

Packages that depend on overwrite