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: Adddata:{oma_table_id: oma_table_id}to any form element, so it will be intercepted and the oma attributes will be added.

Last updated