Craft Tablecloth
  • What is Tablecloth?
  • Installation
  • Table Definition
    • Data Source
    • Columns
    • Options
    • General Settings
    • Advanced
  • Table Rendering
    • Default Table
    • Templates
      • Table Templates
        • Cards Layout Example
      • Field Type Templates
      • Specific Field Templates
      • Child Rows
  • Programmatic Interaction
    • Interacting with The Table
    • Events
    • Methods
  • Localization
  • Contact Us
Powered by GitBook
On this page
  1. Programmatic Interaction

Events

List of Events to Listen to via .on()

  • init.loading: Initial data request was sent

  • init.loaded: Initial data request was completed. Sends through the data (The entire dataset in case of a Client table, and the first page in case of a Server table).

  • row-select: rows were selected (only relevant when the Row select component is enabled). Sends through the selected rows.

  • paginate: Page has changed. Sends through the new page.

  • sort: Sort has changed. Sends through an object with column and asc (is ascending?) properties.

  • query: Free filter search. Sends through the query. (only relevant when Filter component is enabled).

  • perPage: Records per page changed. (Only relevant when Per Page component is enabled).

  • loading: Server table only. Loading data and count.

  • loaded.data: Server table only. Data was loaded. Sends through the data.

  • loaded.count: Server table only. Count request completed. Sends through total records count.

PreviousInteracting with The TableNextMethods

Last updated 3 years ago