Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the vue components reusable #1

Open
vsimko opened this issue Dec 11, 2018 · 0 comments
Open

make the vue components reusable #1

vsimko opened this issue Dec 11, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@vsimko
Copy link
Contributor

vsimko commented Dec 11, 2018

This repository should contain vue components for seronet that are reusable in other projects.

Some example how should work:
in package.json:

{
  "dependencies": {
    "seronet-vue-datasheet": "git+https://github.com/seronet-project/seronet-vuejs-datasheet.git",
  }
}

then in mycomponent.vue

<template>
  <DataSheet :data="someDatasheetData"/>
</template>
<script>
import DataSheet from 'seronet-vue-datasheet/DataSheet' // or something similar
// get the `someDatasheetData` from somewhere, e.g. graphql server
</script>

this was just a quick and dirty example, maybe the API could be nicer.

@vsimko vsimko added the enhancement New feature or request label Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants