Sha256: 4ae5720ffaeefc8b4868175107145640b7cd2c33cc7fc368b1b6a511de02b13f
Contents?: true
Size: 564 Bytes
Versions: 8
Compression:
Stored size: 564 Bytes
Contents
class Lanes.Components.Grid.CellStyles constructor: (fields) -> @styles = [] @classes = [] @visibleIndexes = [] @props = [] for f, i in fields.models continue unless f.visible @styles[i] = {flex: f.flex} if f.fixedWidth @styles[i].flexBasis = f.fixedWidth @styles[i].flexGrow = 0 @classes[i] = _.classnames( 'c', f.textAlign ) @visibleIndexes.push(i) @props[i] = { className: @classes[i], style: @styles[i] }
Version data entries
8 entries across 8 versions & 1 rubygems