Google DART: How to get clientWidth property with dart:dom
Google DART: How to get clientWidth property with dart:dom
#import('dart:dom');
class DOMclientWidth {
}
void main() {
/* This code works with dart:dom */
HTMLElement myDiv = window.document.createElement('div');
myDiv.id = 'TEST';
myDiv.innerHTML = 'Test div for testing dart:dom:clientWidth';
myDiv.style.setProperty('background', '#ff0000');
window.document.body.appendChild(myDiv);
myDiv.innerHTML += '
clientWidth :: ' + myDiv.clientWidth;
}
by Moisés Belchín
