Table

This component displays sets of data across rows and columns.

Step Instructions
1 After you find a seat at a blackjack table that suits your budget, place your bet.
2 The dealer deals you two cards, face up, and deals herself one card. If your cards total 21, you got blackjack—that’s a good thing. (You probably know this already, but numbered cards are worth their number. Face cards—jack, queen and king—are worth 10. Aces are worth one or 11.)
3 If you didn’t get blackjack, when it’s your turn, you can tell the dealer you’ll “stand” if you’re happy with your hand, or “hit” to request more cards, one at a time.
4 After all players at your table are satisfied with their hands, the dealer gives herself cards to try to get closer to 21 than you, without going over, which is known as a “bust.” 

Usage Criteria

Tables display information in a grid-like format of rows and columns. The information is organized this way to make it easy for users to scan and find patterns, insights, or specific information that applies to them within a group.

Do's and Don'ts

  • Do use tables for when users need to look up specific information.
  • Do use tables when precise numbers are important.
  • Do not use tables if there are no static values involved in the information.

Design Notes

Try to structure your table so that there are more rows than columns. This can be made possible by swapping the rows and columns if needed. This is because it's easier for users to skim through information that is vertically aligned than horizontal.

Configurable Options

Finding the table

This component is configured through a regular text component. In the configuration window of a basic text box, click the icon on the top right that toggles a full screen mode. From there, click on the table icon in the same area. This will provide the options for adding rows and columns.

 

Configuring columns and rows

After clicking on the table icon from full screen mode, customization options will appear underneath to specify the number of rows and columns.

To set the width of a specific column, the table must already be created. After, go back into the configuration settings of the table, then click the icon that looks like a table with a pencil. The layout of the options will have changed and now show two tabs: CELL PROPERTIES and TABLE PROPERTIES. Under CELL PROPERTIES, enter the desired percentage of space for the column width in the Width text feld. This will only apply to the column the mouse is active on in the Text configuration window.

 

Styling a cell

Next to the Border text field, the dropdown that says No header can be changed so that either the first row, first column, or both can be highlighted with a purple colour as a way to start the table. 


To add the header background colour to specific cells, the table must already be created. After, go back into the configuration settings of the table, then click the icon that looks like a table with a pencil. Next to Cell Type, change the dropdown to Header instead of Data. The cell changed will be the cell the mouse was last active on before opening the table settings.

Developer Notes

Type Name
AEM Component Name -
Code Base Name -
resourceSupertype -
SCSS Attributes -
JavaScript -
Status  
Version