how to set the border in a DART TableElement


in a Grid example of 2012 the grid border is simply set with:

    TableElement _table;
    _table = new Element.tag("table");

unfortunaltly border is no longer (running vers. 1.1.1) a setter in DART’s TableElement class. Leaving it out results in a table without borders.
How do I set a border?


TableElement _table = new TableElement()


or this should work also… I think

querySelector('body').append(new TableElement().setAttribute('border','1'));

Answered By – doodeec

Answer Checked By – Cary Denson (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *