Import Statements for Tables in Elastic UI

#1

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.

#2

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.

Best,
Oleg

1 Like