ManageIQ / ui-components

Angular UI Components for ManageIQ
Apache License 2.0
16 stars 52 forks source link

miq-data-table enhancement #420

Closed bekasovoleg closed 5 years ago

bekasovoleg commented 5 years ago

Add capability to disable table cols:

cols: [
  {
    header_text: 'col1',
    col_idx: 1,
    hidden: true // cols with such option won't be shown
  },
  {
    header_text: 'col1',
    col_idx: 1,
    hidden: true
  }
]

First column uses for select box, but if we don't use select box, first column still is shown We have no way to disable first column

Add check if there are select boxes

https://github.com/ManageIQ/ui-components/blob/master/src/gtl/components/data-table/data-table.html#L17

himdel commented 5 years ago

(closing, this is already part of the list in https://github.com/ManageIQ/ui-components/issues/419)