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

injecting spacebar output into a row cell ? #473

Open
tomvolek opened this issue Sep 8, 2017 · 1 comment
Open

injecting spacebar output into a row cell ? #473

tomvolek opened this issue Sep 8, 2017 · 1 comment

Comments

@tomvolek
Copy link
Contributor

tomvolek commented Sep 8, 2017

HI All :
I have a reactive-table, which value of one it's cells is a bar code number. I use the package https://github.com/xvendo/barcoder to generate the bar code pictures using the spacebar statement bellow in the HTML. How can i insert this bar code picture in the table cell after the table is generated in the HTML code ?

{{> xvendo_barcoder id="idme" ean="1234567890123"}}

Thanks
Tom

@aslagle
Copy link
Owner

aslagle commented Sep 10, 2017

You can make one of your fields in the table use a barcode template.

{ key: 'barcode', label: 'Barcode', tmpl: Template.barcode }

To create the barcode template, assuming each item in your collection has a barcode and an id, you'd do something like this:

<template name="barcode">
  {{> xvendo_barcoder id=id ean=barcode }}
</template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants