3.0.0
BLOCKS
Mobile-Friendly Data Table

Overview

This module allows a user to view a list of things in a mobile-friendly data table format and apply additional filters to the list. This module is useful when you need to display around 10 fields per row on desktop, and around 6-7 fields per row on mobile. A user can click on the ︙icon to edit or delete an item via a menu focus group. For more information on how to use menufocus_template, please click here.
Desktop Example
Mobile Example
There are placeholder conditionals on the text elements and circular shapes that indicate the "Status" of each Invoice in this example. These style changes can be repurposed if needed, or removed completely.

Structure

  • When this block is added to a page, it is placed within a Blocks container 860 (do not rename) on the page. This group contains the responsive settings for all blocks.
  • This block contains these main groups:
    • Group Inner header buttons and filters - This group contains the title, add button, and reusable element filters_template.
    • Group Main data table - This group contains the table column data (each column has its own hiding rule)
    • Group Inner desktop table header - This group contains the table column headers that are shown on desktop. This group is shown when the page width is greater than 750 pixels.
    • Group Inner mobile table header - This group contains the table column headers that are shown on mobile. This group is shown when the page width is less than 750 pixels.
    • RepeatingGroup Dummy- contains the list of things that will be displayed in the data table. This repeating group's data source should be changed from "Dummy" to the type of content that you will display.
    • Group Inner desktop content container - This group is within the repeating group cells, and it contains the row value elements that are shown on desktop. This group is shown when the page width is greater than 750 pixels. There is a collapsible placeholder group within this group.
    • Group Inner mobile content container - This group is within the repeating group cells, and it contains the row value elements that are shown on mobile. This group is shown when the page width is less than 750 pixels. There is a collapsible placeholder group within this group.
  • This block contains two copies of the menufocus_template reusable element - menufocus_template mobile and menufocus_template mobile.

How can I adjust the filters and menu options?

  • Go to the page where you have added the block and update RepeatingGroup 800-1Column's data source
  • Update header text and the data source of the texts in the block.
  • For more information on how to customize the filters, please click here.
  • For more information on how to customize the menufocus_template reusable elements included on this page (menufocus_template desktop and menufocus_template mobile), please click here

How can I modify the table's rows and columns?

This data table block contains conditional logic to display a desktop design on desktop page widths, and a mobile design at mobile page width. There are no hiding rules that you need to adjust when adding columns for the mobile view; all of the content will be displayed as long as you do not change the widths of the Group Inner desktop table header and Group Inner desktop content container elements shown below:
The Group Inner Desktop Table Header and Group Inner Desktop Content Container elements are shown on desktop
You can further customize the data table by removing columns that you do not need. If you do edit the columns, please make sure that the header and data texts all align (start at the same x position), nothing is overlapping, and all the responsive settings for the header texts and data texts match exactly (hiding rule with, minimum width, maximum width, responsive alignment, and width). For example, if a "Status" column heading has a left-fixed margin, a 20% minimum width, and no max width, it is important for the corresponding row element "Completed" to have the exact same settings and x position).
Similarly, there are no hiding rules that you need to adjust when adding fields for the mobile view; all of the content will be displayed as long as you do not change the widths of the Group Inner mobile table header and Group Inner mobile content container elements:
It is best to keep 1-2 columns of text for mobile, and add elements that are stacked vertically, as shown in the original design.