> For the complete documentation index, see [llms.txt](https://omalab.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://omalab.gitbook.io/guide/engineering-wiki/front-end/oma-standard-tables.md).

# OMA Standard Tables

The OMA standard table class implements multiselect, sortable columns, filters, and clearing of filters in a "standard" way.

Convert a table to a standard OMA table:

Step 1: Add to the table itself the following attributes (in example id of table is message-templates-table) data-user-id="#{current\_user.id}" data-project-id="#{current\_project.id}" data-toggle="table" data-total="#{@total}"\
data-store-key="#{storage\_key('message-templates-table')}

Step 2: Add the header row.

Step 3: Add to any modal the local oma-table-id attribute which is the ID of the table.

Step 4: Add`data:{oma_table_id: oma_table_id}`to any form element, so it will be intercepted and the oma attributes will be added.
