You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,12 @@ can_delete | true | Set if current user can delete tags/pills
89
89
can_add | true | Set if current users can add new tags
90
90
remove_url | | Set URL where `POST` request will be sent on tag/pill removal.
91
91
input_name | tags[] | Set name of the hidden `<input>` element to be added with every tag/pill. It should end with `[]` in order to support multiple values.
92
+
double_hilight | #0B3549 | Color to highlight tag on double entry attempt.
92
93
limit | 0 | Maximum amount of tags to add. 0 - no limits.
94
+
only_suggestions | false | You can allow only add from suggestions and not add new tags/pills.
95
+
suggestion_limit | 15 | Maximum number of suggestions for typeahead.
96
+
suggestion_url | | Url to fetch suggestion. `POST` request will be send with `q` and `limit` parameters. `q` - search string and `limit` - how many suggestions maximum.
97
+
suggestions | [] | Array of suggestion.
93
98
templates | Object | Set HTML markup. This let you fully manage and style output as you want. No limitations. See [Templates](#templates) for more details.
94
99
95
100
## Templates
@@ -106,9 +111,9 @@ You can path template through `templates` option.
106
111
}
107
112
});
108
113
109
-
Template | Default | Descritpion
114
+
Template | Default | Description
110
115
---|---|---
111
-
pill | `<span class="badge badge-info" data-tag-id="{1}">{0}</span>` | This is main HTML element of the pill. This is also what will be passed to `onRemove(pill)` method. After full pill creation it will include also hidden `<input>`, number if passed and remove icon. `{0}` is the tag text, `{1}` is the tag id. `data-tag-id` is required attribute.
116
+
pill | `<span class="badge badge-info">{0}</span>` | This is main HTML element of the pill. This is also what will be passed to `onRemove(pill)` method. After full pill creation it will include also hidden `<input>`, number if passed and remove icon. `{0}` is the tag text.
112
117
number | `<sup><small>{0}</small></sup>` | If `num` property exists in [feed](#feed-format) then number will be added. This is template how to format it.
113
118
delete_icon | `<i class="icon-remove-sign"></i>` | This is delete icon. If you use FontAwesome or IcoMoon you can change it to display better icon.
0 commit comments