@adactive/bootstrap-tagsinput

中文文档
0.8.2发布于 2017/11/28MITCommonJS零依赖近 30 天下载 1.5万

jQuery plugin providing a Twitter Bootstrap user interface for managing tags.

原始使用文档
文档目录8 节
  1. Usage
  2. Features
  3. Objects as tags
  4. True multi value support
  5. Typeahead support
  6. Development
  7. History
  8. License

Bootstrap Tags Input Build Status

Bootstrap Tags Input is a jQuery plugin providing a Twitter Bootstrap user interface for managing tags.

Current stable version: v0.8.0

Usage

Examples can be found here.

Features

  • Objects as tags
  • True multi value
  • Typeahead
  • Designed for Bootstrap 2.3.2 and 3

Objects as tags

Not just support for using strings! This means you can use different values for a tag's label and value. Each tag also holds a reference to the object by which it was created, so by calling tagsinput('items') an array of the original items is returned.

True multi value support

Other implementations just concatenate the values to a comma separated string. This results in val() returning just this string, and when submitting the form, only one big, concatenated value is sent in the request.

Bootstrap Tags Input provides true multivalue support. Just use a <select multiple /> as your input element, and val() will return an array of the tag values. When submitting the form, an array of values will be sent with the request.

Typeahead support

Integrates with Twitter Bootstraps' 2.3.2 typeahead, or use custom typeahead when using Bootstrap 3.

Development

Install dependencies:

npm install
grunt install

Test:

grunt test

Build:

grunt build

Current Library Versions:

  • Bootstrap: 3.3.5
  • jQuery: 2.1.4
  • Typeahead: 0.11.1

Libraries for testing go in the /lib directory.

History

License

This project is licensed under MIT.

版本与发布记录

@adactive/bootstrap-tagsinput 共发布 1 个版本,首次发布于 2017/11/28;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.8.2latest2017/11/288 年前

关于 @adactive/bootstrap-tagsinput 的常见问题

@adactive/bootstrap-tagsinput 是什么?

jQuery plugin providing a Twitter Bootstrap user interface for managing tags.

如何安装 @adactive/bootstrap-tagsinput?

在项目目录运行 npm install @adactive/bootstrap-tagsinput,或使用 pnpm add / yarn add / bun add。

@adactive/bootstrap-tagsinput 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/adactive__bootstrap-tagsinput 是否存在。

@adactive/bootstrap-tagsinput 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@adactive/bootstrap-tagsinput 可以商用吗?

@adactive/bootstrap-tagsinput 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@adactive/bootstrap-tagsinput 的下载量有多少?

根据 npm 官方下载统计,@adactive/bootstrap-tagsinput 在 2026/10/05 – 2026/11/03 这 30 天内被下载 15,231 次,日均约 508 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adactive/bootstrap-tagsinput 还在维护吗?

最新版本 0.8.2 发布于 2017/11/28(8 年前);至今共发布 1 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/11/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。