Table
Table(data, columns, attrs={}, class_names='min-w-full bg-white shadow-md rounded-xl', td_class_names='py-3 px-4 text-left', th_class_names='py-3 px-4', tr_class_names='border-b border-light-gray dark:border-dark-page1')
Creates a table component with given data, columns. args: data - list of dictionaries of data e.g. [{"key" : 1, "name": "Mike"}] columns - list of dictionaries of column names [{"title": "Name", "index": "name"}] note index for each column is where data is indexed and displayed, for example when index is "name" , for every dictionary in data "name" is fetched and displayed class_names - default class name attrs table tag attributes dictionary