You ended up using context.begin… but its missing add’X’.
You searched and searched for how to do something, and the only thing you could find were some tutorials about going into the context & pushing values. Fantastic.
You saw that you can
context = context.begin(‘table’).addClass(‘myCSSClass’);
And hey that was pretty cool, you know some CSS and how to use a class. But you also need to add an id and scope. Hmm. There is no “addScope” or “addID”. What to do what to do…
context = context.begin(‘table’).attr(‘id’,’my ID’).attr(‘scope’,’col’);
Viola! Now you’ll see <table id=’my ID’ scope= ‘col’ > in the HTML. Carry on…
Thanks #sproutcore for that one.