Import Statements for Tables in Elastic UI

Hi there,

I'm developing a Kibana plugin and I want to use a table from Elastic UI. I want to use the EuiBasicTable. However, I need to import some things and I don't know where they are coming from. They don't exist in my project folder.

import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';

I'm confused also how to use createDataStore to display data I'll be fetching from an API.

I guess it's just data source for the demo website purposes only. Same for formatDate.

You're supposed to fetch your own data and pass it as an items property of the table component.


1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.