Comments (2)
- Create UI Script copy/paste from
https://cdn.jsdelivr.net/jsbarcode/3.3.20/JsBarcode.all.min.js
- UI Macro: barcode
- Code:
<?xml version="1.0" encoding="utf-8" ?> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> <svg id="code128"></svg> <!-- <svg id="ean-13"></svg> <svg id="ean-8"></svg> <svg id="ean-5"></svg> <svg id="ean-2"></svg> <svg id="upc-a"></svg> <svg id="code39"></svg> <svg id="itf-14"></svg> <svg id="msi"></svg> <svg id="pharmacode"></svg> --> </j:jelly>
- Add onChange client script to run on load/change to generate the barcode
- Code:
function onChange(control, oldValue, newValue, isLoading, isTemplate) { /* * Run on load and on change. if (isLoading || newValue === '') { return; } */ ScriptLoader.getScripts('jsbarcode.jsdbx', function() { console.log('onchange'); JsBarcode("#code128", newValue); /* JsBarcode("#ean-13", "1234567890128", {format: "ean13"}); JsBarcode("#ean-8", "12345670", {format: "ean8"}); JsBarcode("#ean-5", "12345", {format: "ean5"}); JsBarcode("#ean-2", "12", {format: "ean2"}); JsBarcode("#upc-a", "123456789012", {format: "upc"}); JsBarcode("#code39", "Hello", {format: "code39"}); JsBarcode("#itf-14", "1234567890123", {format: "itf14"}); JsBarcode("#msi", "123456", {format: "msi"}); JsBarcode("#pharmacode", "12345", {format: "pharmacode"}); */ }); }
from jace.pro.
Posted: https://blog.jacebenson.com/post/2018-11-25-barcodes/
from jace.pro.
Related Issues (20)
- Feature Request - RSS feed for the news HOT 1
- post/2020-05-22-all-the-shortcuts/ HOT 2
- Show code in addition to the screenshot of the code
- is it possible to use this end point mentioned in this post? HOT 3
- Some page have broken styling in the blog HOT 2
- post/2018-06-06-email-scheduled-reminders/ HOT 2
- post/2021-05-07-how-to-export-your-followers-from-twitter-right-now/ HOT 2
- Why extending a sys_user table is problematic HOT 1
- go over http://zoominsoftware.com/
- templates are better - write about this stuff
- post/2020-12-17-cloudflare-pages-netlify-zeit-github-pages-and-gitlab-pages-where-to-host/ HOT 9
- Mirroring choices from tables on catalog items HOT 1
- acl change to emails on activity streams with paris HOT 1
- Fuzzy time script
- How to include data in a scoped application HOT 1
- What is SUBQUERY HOT 1
- How to get the current shard for a table
- post/2019-01-12-kb-approvals/ HOT 2
- Adding Metrics to Scoped tables
- extension points
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jace.pro.