CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: HTML

BlueprintCSS Columns on Spark View

262 Views
Copy Code Show/Hide Line Numbers
   1:  <var columnClass="new [] {'span-11 column', 'span-11 column last' }" />
   2:  <div each="var item in o.Items" columnClass="${lastClass[itemIndex%2]}">
   3:   
   4:  </div>
by David R. Longnecker
  November 30, 2009 @ 2:25pm
Tags:
Description:
The itemIndex is based on the variable name... if it "var stuff in o.Stuff", the indexer would be called stuffIndex. Great and makes it amazingly simple to keep column classes inline with BlueprintCSS.

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate