The syntax is rather strange, but it works. Josh's answer is on the right track. Here is the complete answer using a line from my current project. This includes syntax for using several attributes:
col.For(ts => ts.Subtitle.Abbreviation) .Named("Subtitle<br />Language") .Attributes(x => new Dictionary<string, object>() { // { "name", "value" }; results in: { "title", x.Item.Subtitle.Text }, // title="someLanguage" { "class", "someCssClass" }, // class="someCssClass" { "id", "someIdOrOther' } // id="someIdOrOther" });
You can include as many name / value pairs as you want. Each of them will have access to the .Item property for the lambda variable ( x in the above example) if you need to use data from this row object.
source share