0.0.21 • Published 9 years ago

tagla v0.0.21

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

tagla

Awesome Photo Tagging library

Installation

bower install tagla

Usage

  • CSS files
<link rel="stylesheet" href="bower_component/chosen_v1.3.0/chosen.min.css" />
<link rel="stylesheet" href="bower_component/tagla/dist/tagla.min.css" />
  • JavaScript files
<script src="bower_component/vendor/jquery/dist/jquery.min.js"></script>
<script src="bower_component/vendor/mustache.js/mustache.min.js"></script>
<!-- Draggabilly and Chosen are required for `editor: true` (start) -->
<script src="bower_component/vendor/draggabilly/dist/draggabilly.pkgd.min.js"></script>
<script src="bower_component/chosen_v1.3.0/chosen.jquery.min.js"></script>
<!-- Draggabilly and Chosen are required for `editor: true` (end) -->
<script src="bower_component/tagla/dist/tagla.min.js"></script>
  • Instantiate
var tagla = new Stackla.Tagla($container, {
  editor: true,
  unit: 'percent',
  data: [
    {
      x: 25,
      y: 70,
      label: 'frankie Magazine January 2015',
      price: '$26.95',
      description: 'Just try wiping ...',
      image: 'product.png'
    },
    {
      x: 33,
      y: 53,
      label: 'John Jr',
      price: 500,
      description: 'Shy...',
      image: 'product.png'
    },
    {
      x: 65,
      y: 32,
      label: 'Gobbler',
      price: 500,
      description: 'Eat everything',
      image: 'product.png'
    }
  ],
  unit: 'percent'
});
tagla.render();

Development

  • Install npm and bower packages for first time only.
$ git clone git@github.com:josephj/tagla.git
$ cd tagla
$ bower install .
$ npm install .
  • Execute gulp
$ gulp
0.0.21

9 years ago

0.0.20

9 years ago

0.0.18

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago