Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ Load environment variables
source .env
```

Define the table name, open the `extension.json`
- Update the `name` and `id` property.

Adjust the table configuration.
- Open `index.html`.
- Update the `tableData` object with the desired table format.

```
tableData : getInitialData({
rows: 3,
header: ['FOO', 'BAR', 'BAZ']
})
```

### Create

```sh
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Contentful UI extension country select</title>
<title>Contentful UI extension table field</title>
<link rel="stylesheet" href="https://contentful.github.io/ui-extensions-sdk/cf-extension.css">
<script src="https://contentful.github.io/ui-extensions-sdk/cf-extension-api.js"></script>
<style>
Expand Down Expand Up @@ -84,4 +84,4 @@
});
</script>
</body>
</html>
</html>