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

Version Path
lanes-0.7.0 client/lanes/components/grid/CellStyles.coffee
lanes-0.6.1 client/lanes/components/grid/CellStyles.coffee
lanes-0.6.0 client/lanes/components/grid/CellStyles.coffee
lanes-0.5.6 client/lanes/components/grid/CellStyles.coffee
lanes-0.5.5 client/lanes/components/grid/CellStyles.coffee
lanes-0.5.0 client/lanes/components/grid/CellStyles.coffee
lanes-0.4.0 client/lanes/components/grid/CellStyles.coffee
lanes-0.3.0 client/lanes/components/grid/CellStyles.coffee