I want to read the contents of a paper-input
after pressing a button in Dart. I've tried other suggestions such as reading value
and inputValue
attributes on both the paper-element
and the internal html <input>.
Searching the page source doesn't reveal what is in the paper-input
. I found the contents inside of a private member of the inner html <input>, but I'm not sure if using Mirrors in Dart can reflect private members.
The relevant value
attribute resides at:
paper-element -> inner html <input> -> attributes map ->
private variable named _element
So the attributes map instance has some members that are not part of the map. Its _element
member has a value
uh field which contains the text residing in the paper-input
.
Tell me I'm missing something.
EDIT: Here is what ended up being the solution: Instance of Paper elements in dart