0.0.5 • Published 11 months ago

vue-open-book v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Vue Open Book

This is an open-source, TypeScript based, spreadhseet component for Vue 3.

Installation

To install, run

npm install vue-open-book

Usage

Import the OpenBook component, define a reactive variable and pass it to the data model of the OpenBook component. Valid data elements are numbers, strings, null and undefined. You also need to import the styles file from the dist folder.

<template>
  <div>
    Hello, this is an example.
    <OpenBook v-model:data="myData"></OpenBook>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { OpenBook } from 'vue-open-book';

import 'vue-open-book/dist/style.css';

const myData = ref([
  [1, 2, 3, undefined, 5],
  [6, null, 8, 'nine', 10],
]);
</script>

null and undefined are shown as empty cells.

0.0.5

11 months ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago