# Import Statements for Tables in Elastic UI

**URL:** <https://discuss.elastic.co/t/import-statements-for-tables-in-elastic-ui/181364>\
**Category:** Kibana\
**Created:** [May 16, 2019, 10:09am UTC](https://discuss.elastic.co/t/import-statements-for-tables-in-elastic-ui/181364 "2019-05-16T10:09:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkelsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkelsen/32/46291_2.png) [@dkelsen](https://discuss.elastic.co/u/dkelsen)\
**Post date:** [May 16, 2019, 10:09am UTC](https://discuss.elastic.co/t/import-statements-for-tables-in-elastic-ui/181364/1 "2019-05-16T10:09:27Z")

</div>

Hi there,

I'm developing a Kibana plugin and I want to use a table from Elastic UI. I want to use the [EuiBasicTable](https://elastic.github.io/eui/#/display/tables). 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.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [May 16, 2019, 10:26am UTC](https://discuss.elastic.co/t/import-statements-for-tables-in-elastic-ui/181364/2 "2019-05-16T10:26:54Z")

</div>

> [@dkelsen](#):
>
> I'm confused also how to use createDataStore

I guess it's just [data source](https://github.com/elastic/eui/blob/75fee43023fbe7ed32cf437cd711322d4228a7e0/src-docs/src/views/tables/data_store.js) 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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 13, 2019, 10:26am UTC](https://discuss.elastic.co/t/import-statements-for-tables-in-elastic-ui/181364/3 "2019-06-13T10:26:55Z")

</div>

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