Closed ninetteadhikari closed 2 years ago
@andrewtpham, I'm looking at the table and I'm not sure if the settings button will fit properly :thinking:
@andrewtpham what about right-clicking on a header column in order to bring up the menu?
@michaelbukachi Could we create the settings icon a row above the main header? See in this example, we could add the icon somewhere above (see purple highlight):
we can also have the last column fixed. https://element.eleme.io/#/en-US/component/table#table-with-fixed-column @andrewtpham what do you think?
Yes! I like the fixed column if that works for @michaelbukachi
Yes! I like the fixed column if that works for @michaelbukachi
Alright. I'll start implementing this.
@andrewtpham @ninetteadhikari Preview for the hide/show column: https://vue-ui-components-mpm9ps1kt-hikaya.vercel.app
@andrewtpham @ninetteadhikari Preview for the hide/show column: https://vue-ui-components-mpm9ps1kt-hikaya.vercel.app
@michaelbukachi This looks great! I really like how it works. Here's some feedback points (cc @ninetteadhikari):
checkbox
or a switch
to hide/display a columnadmin/owner
user can define.
Example screen:
@andrewtpham
@andrewtpham @ninetteadhikari
The preview link: https://vue-ui-components-hrmutaluz-hikaya.vercel.app
@andrewtpham @ninetteadhikari
1. Done 2. Done
The preview link: https://vue-ui-components-hrmutaluz-hikaya.vercel.app
Also. I'm not sure if it's just my computer. But I get a bit of lag when I hide/show columns :thinking:
@michaelbukachi For the styling of drag and drop to re-order the column order, we can follow something like this? https://dribbble.com/shots/15013254-Table-view-settings
@michaelbukachi Apologies for the many examples but wanted to share this in case some of the styling is easier to implement:
The main things to keep in mind for the drag and drop
styling:
@andrewtpham I don't think we have an icon which we can use as a drag indicator: https://element.eleme.io/#/en-US/component/icon
Here's the line indicator: https://vue-ui-components-cn3aqhl9o-hikaya.vercel.app
@michaelbukachi Could we use one of these for our drag and drop icon, which do you prefer given the screen real estate? Also, do you think it should be on the right side?
https://fontawesome.com/v6.0/icons/grip-vertical?s=solid https://fontawesome.com/v6.0/icons/grip-lines?s=solid
@michaelbukachi This is perfect! Nicely done 🙌
@michaelbukachi Could we use one of these for our drag and drop icon, which do you prefer given the screen real estate? Also, do you think it should be on the right side?
https://fontawesome.com/v6.0/icons/grip-vertical?s=solid https://fontawesome.com/v6.0/icons/grip-lines?s=solid
With this, we'd have to introduce fontawesome into hakawati. But it seems we don't have an alternative.
@michaelbukachi Could we use one of these for our drag and drop icon, which do you prefer given the screen real estate? Also, do you think it should be on the right side? https://fontawesome.com/v6.0/icons/grip-vertical?s=solid https://fontawesome.com/v6.0/icons/grip-lines?s=solid
With this, we'd have to introduce fontawesome into hakawati. But it seems we don't have an alternative.
@michaelbukachi Ok, let's skip fontawesome for now.
Do you think we could use el-icon-minus
and stack 2 of them on top of each other? And if it doesnt look good, you can just add one as a placeholder until we find another one in element 😅
@michaelbukachi Could we use one of these for our drag and drop icon, which do you prefer given the screen real estate? Also, do you think it should be on the right side? https://fontawesome.com/v6.0/icons/grip-vertical?s=solid https://fontawesome.com/v6.0/icons/grip-lines?s=solid
With this, we'd have to introduce fontawesome into hakawati. But it seems we don't have an alternative.
@michaelbukachi Ok, let's skip fontawesome for now.
Do you think we could use
el-icon-minus
and stack 2 of them on top of each other? And if it doesnt look good, you can just add one as a placeholder until we find another one in element 😅
@michaelbukachi On second thought, let's get this PR merged and I'll ticket the icon in a separate enhancement for the future. Maybe we'll find a better icon to use by then 🙆♂️
Is your feature request related to a problem? Please describe. We would like the ability for a user to select which columns to display and re-order in the table view
Additional context Here is a quick mock up of the dropdown menu (apologies its so messy), still getting the hang of figma 🙈