budibase icon indicating copy to clipboard operation
budibase copied to clipboard

Improve Table formatting

Open gvlx opened this issue 4 years ago • 18 comments

Describe the feature request Tables are one of the most used elements in data entry, but also one of the most complicated to design.

The setting pane of the table element requires a lot of improvements, some of which I mention here, hoping other will add more details later on.

Improvements:

  • [x] Column selection (which columns/fields are included)
  • [x] Column sorting (order the fields are presented)
  • [x] Column size
  • [ ] Column formatting (other than size)
  • [ ] Cell content rendering choices (img size, ratio)
  • [ ] Cell links (cell has a link)
  • [x] Row selector (row select check box)
  • [x] Row links (row has/is a link)
  • [ ] Row sorting (column based and expression based)
  • [ ] Table formatting: borders, color patterns, banding, etc.
  • [ ] Header formatting
  • [ ] Automatic columns and rows for aggregation formulas (sum, count, etc)

Sugestions Creating a new 'complex table' element which behaves like a Repeater but with automatic header row and row sorting and selector mechanisms. Each added element creates its header entry automatically.

gvlx avatar Nov 07 '21 10:11 gvlx

I've just noticed (still a newbie here): the table element is a container.

Some (most) of the above can be solved if each added element can have a property to create its header. This would mean the table would be used without any visible columns.

Right now (0.9.177) it is left without a header: imagem

gvlx avatar Nov 07 '21 11:11 gvlx

Linking to issue #1694 .

gvlx avatar Nov 08 '21 00:11 gvlx

Thanks @gvlx - linking to this discussion also: https://github.com/Budibase/budibase/discussions/1913

Note that you can currently change the Column selection and ordering...

  1. Unselect all columns
  2. Select columns in the order you want them to appear

mjashanks avatar Nov 12 '21 12:11 mjashanks

Thank you, I was already using that feature ;)

gvlx avatar Nov 12 '21 12:11 gvlx

I agree that being able to "enhance" the current table with a couple of features would be of great help. I would suggest:

  1. one can already add buttons and paragraphs to a table as extra column, but one must be able to specify a "name" for that column like in gvlx comment above;
  2. it might be necessary to give a "readable" name to a column. The column names currently come from a DB in many cases, so it might not be very user friendly (without also considering the future need for i8n.
  3. make the table cells writeable like in an excel, best with auto-save / undo or the option to "save" with a button
  4. would be good to have the usual table perks from the end-user side: (sort, filter, download csv/xls)

marco-santulli avatar Nov 22 '21 22:11 marco-santulli

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 22 '22 03:01 stale[bot]

Do we need to keep posting +1s to keep this open?

AndrewSav avatar Jan 22 '22 06:01 AndrewSav

@AndrewSav we no longer automatically close stale issues

Rory-Powell avatar Jan 22 '22 09:01 Rory-Powell

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 25 '22 01:03 stale[bot]

Table banding also requested in this discussion: https://github.com/Budibase/budibase/discussions/5197

It could effectively be the same as 'Quiet' but applied to even rows only. Call it banded or striped.

melohagan avatar Apr 04 '22 10:04 melohagan

Hi,

can we add a flag to tables to turn-off sorting? at the moment sorting doesn't really work for custom queries where we implement pagination manually. In that case sorting just sorts the current page. It should be possible to turn it off?

M

marco-santulli avatar Apr 20 '22 09:04 marco-santulli

Allow linked rows to be opened in new tab, as you can with clickable links within the rows (https://github.com/Budibase/budibase/discussions/5577)

melohagan avatar Apr 26 '22 10:04 melohagan

Allow individual table cells to be formatted: https://github.com/Budibase/budibase/discussions/6341

melohagan avatar Jun 16 '22 08:06 melohagan

Allow linked rows to be opened in new tab, as you can with clickable links within the rows (#5577)

Also want to be able to open Card links in a new tab.

melohagan avatar Jun 30 '22 10:06 melohagan

Screenshot 2022-07-15 at 10 11 17

It'd be nice to have an option to type in a page number to goto.

melohagan avatar Jul 15 '22 09:07 melohagan

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Sep 21 '22 04:09 stale[bot]

Do we need to keep posting +1s to keep this open?

AndrewSav avatar Sep 21 '22 10:09 AndrewSav

Hey @AndrewSav No need to worry, this issue wont be closed until it's completed! The stale bot doesn't auto close.

melohagan avatar Sep 21 '22 10:09 melohagan

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Nov 22 '22 20:11 stale[bot]

The issue is closed but at least one thing is missing in my opinion: Column formatting (other than size): imagine I want to create a column containing an email or a phone number, I'd like to manage the formatting constraint at the column level and not each time I create a field in a form. Also, it might be a good move to create such predefined basic types as emails, phone number, ...

leolivier avatar Dec 30 '23 12:12 leolivier

Closing this issue as new issues specific to the grid would be better - there is quite a lot of discussion here pertaining to our old table format, if there are specific issues pertaining to our grid and data layouts new issues detailing them would be preferred.

mike12345567 avatar Jul 02 '24 12:07 mike12345567