-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (43 loc) · 1.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<link href='dist/taggy.css' rel='stylesheet' type='text/css' />
<link href='example/example.css' rel='stylesheet' type='text/css' />
<title>Taggy</title>
<h1>Taggy</h1>
<h3>Tag input component</h3>
<a href='https://github.com/bevacqua/taggy'>
<img class='gh-fork' src='https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67' alt='Fork me on GitHub' data-canonical-src='https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png' />
</a>
<div class='examples'>
<div class='parent'>
<label for='free'>Enter a space-separated list of tags</label>
<div class='input'>
<input id='free' placeholder='This is some placeholder text'>
</div>
</div>
<div class='parent'>
<label for='fixed'>Here you can only enter suggested items.</label>
<div class='input'>
<input id='fixed'>
</div>
</div>
<div class='parent'>
<label for='sourced'>Here, suggestions are generated dynamically. Free tagging is turned on, so you can enter tags that aren't in the suggestion list.</label>
<div class='input'>
<input id='sourced'>
</div>
</div>
<div class='parent'>
<label for='random'>Here, suggestions are generated randomly and autocomplete cache is turned off.</label>
<div class='input'>
<input id='random'>
</div>
</div>
<div class='parent'>
<label for='invalid'>Note how invalid tags are highlighted. In this case, duplicates are considered invalid. Invalid tags can be anything you want.</label>
<div class='input'>
<input id='invalid' value='a a b c d e f b'>
</div>
</div>
</div>
<script src='dist/taggy.js'></script>
<script src='example/example.js'></script>