stephengolub / rxDataTable

A "catch-all" solution for displaying data in a table format in a basic or extremely complex style.
MIT License
15 stars 8 forks source link

Add icon.fieldValues to accept multiple field values for displaying icon #52

Closed bry4n closed 8 years ago

bry4n commented 8 years ago

we could have this way to reduce array of icons in column config

without fieldValues field

icon:
  - field: status
    fieldValue: New
    name: fa fa-sort-desc
    tooltip:
      text: Edit Status

  - field: status
    fieldValue: Pending Maintenace
    name: fa fa-sort-desc
    tooltip:
      text: Edit Status

with fieldValues field

 icon:
  - field: status
    fieldValues:
        - New
        - Pending Maintenace
    name: fa fa-sort-desc
    tooltip:
      text: Edit Status
coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.5%) to 75.518% when pulling 0a01cf335f5c613a2b012c92d31cc12d511c9017 on bry4n:add-fieldvalues into 0f1fbc57bf898cbbf9bff98b5eec317821a2bb3b on nickburns2006:master.