# simple-api-table

> Simple Vue table to fetch JSON API data

Latest version **0.0.3** (published 2017-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-api-table
pnpm add simple-api-table
yarn add simple-api-table
bun add simple-api-table
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-03-07 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Tomasz Rup |
| Maintainers | tomaszrup |
| Keywords | simple, vue, api, table |

## Links

- npm: https://www.npmjs.com/package/simple-api-table
- Repository: https://github.com/tomaszrup/vue-simple-api-table
- Homepage: https://github.com/tomaszrup/vue-simple-api-table#readme
- Issues: https://github.com/tomaszrup/vue-simple-api-table/issues
- npm.io page: https://npm.io/package/simple-api-table

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.15.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2017-03-07
- 0.0.2 — 2017-03-07
- 0.0.1 — 2017-03-06

## README

# simple-api-table

Simple Vue 2 table to fetch and sort data from REST API.

# Dependencies

* [axios](https://github.com/mzabriskie/axios)
* [lodash](https://github.com/lodash/lodash)

# Demo

![Demo](http://i.imgur.com/KStnrCV.gif)

# Installation

```bash
npm install simple-api-table
```

then, in your `main.js`:

```javascript
import SimpleApiTable from 'simple-api-table'
Vue.component('simple-api-table', SimpleApiTable)
```

# Usage

```
<simple-api-table url="/your/url/here"> </simple-api-table>
```

# API

| Option | Value | Default | Description |
| ------ | ------ | ------ | ------ |
| `url` | `http://your/url` or `/your/url` | `undefined` (required) | Specifies the API Url
| `ordered` | `true` or `false`| `true` | Display records with order numbers
| `header-case` | `start`, `camel`, `kebab` | `start` | Transform keys to a case for table headings
| `sort-by-default` | The key you want to sort by | First key | Key the table will be sorted by on render
| `sort-dir-default` | `asc` or `desc` | `asc` | Direction the table will be sorted in on render
| `except-keys` | Array of keys | `[]` | Keys you dont want to be displayed

# License

[MIT](https://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/simple-api-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
