| Sample code for run plugin |
|---|
plugin resources
HTML code
Javascript code
|
| Data attributes for set your options | |
|---|---|
| Attributes | Sample |
data-points |
data-points='[{"top": 279, "left": 93.5, "text": "Tag [ 1 ]"},{"top": 370, "left": 308.5, "text": "Tag [ 2 ]"},{"top": 144, "left": 211.5, "text": "Tag [ 3 ]"},{"top": 221, "left": 211.5, "text": "Tag [ 4 ]"}]'
|
data-allow-add-tags |
data-allow-add-tags="true"
|
data-show-all-on-hover |
data-show-all-on-hover="true"
|
data-show-tags-buttons |
data-show-tags-buttons="true"
|
data-points-tooltip-follow |
data-points-tooltip-follow="up"
|
data-points-color |
data-points='red'
Colors :
|
Demo
Basic Example
<img src="assets/images/demo-1.jpg"
class="tagging-photo"
data-show-tags-buttons="true"
data-points='[{"top": 227, "left": 106.5, "text": "Chair"},{"top": 401, "left": 248.5, "text": "Mouse"},{"top": 298, "left": 374.5, "text": "Keyboard"},{"top": 343, "left": 471.5, "text": "Eyeglasses"}]'
alt="">
Example with show tags fo edit and delete
<img src="path-name/photo.jpg"
class="tagging-photo"
data-points-color="red"
data-allow-add-tags="true"
data-show-all-on-hover="true"
data-show-tags-buttons="true"
data-points-tooltip-follow="down"
data-points='[{"top": 279, "left": 93.5, "text": "Tag [ 1 ]"},{"top": 370, "left": 308.5, "text": "Tag [ 2 ]"},{"top": 144, "left": 211.5, "text": "Tag [ 3 ]"},{"top": 221, "left": 211.5, "text": "Tag [ 4 ]"}]'
alt="">