aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

Table will not display a column with key 'hidden' or 'hide' #373

Closed nidem closed 8 years ago

nidem commented 8 years ago

When the key is 'hide' or 'hidden' the colum is not displayed. It still appears in the ShowColumnToggles

        fields: [
            { key: 'name', label: 'Name' }
            {
                key: 'hidden'
                label: 'Hidden'
                fn: (value, object, key)->
                    if value? and not value
                        new Spacebars.SafeString '<span class="glyphicon glyphicon-eye-open is-true"></span>'
                    else
                        new Spacebars.SafeString '<span class="glyphicon glyphicon-eye-close is-false"></span>'

            }
            {
                key: 'alum'
                label: 'Alum'
                fn: (value, object, key)->
                    if value? and value
                        new Spacebars.SafeString '<span class="glyphicon glyphicon-ok is-true"></span>'
                    else
                        new Spacebars.SafeString '<span class="glyphicon glyphicon-remove is-false"></span>'
            }
        ]

Commenting out the fn for the column makes no difference

nidem commented 8 years ago

image

nidem commented 8 years ago

CSS issue. I didn't realize it defaults the class name to the same as the key. That class name hid the column.