【文件属性】:
文件名称:meteor-autoform-tags-typeahead:提供具有预输入功能的流星自动成型标签输入
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-12 06:57:14
JavaScript
自动输入预先输入的标签
使用包括预输入在内的标签输入来扩展自动排版。 除了提供输入之外,它还负责存储唯一的标签以供快速输入使用,以便在键入时自动填充输入。
安装
在“流星”应用目录中,输入:
$ meteor add cloudspider:autoform-tags-typeahead
用法示例
SomeSchema = new SimpleSchema ( {
tags : {
type : [ String ] ,
label : 'Tags' ,
autoform : {
type : 'tagsTypeahead' ,
}
}
} ) ;
假设您填写了3个标签:
Amsterdam, Hamburg, Boston
以上结果在以下mongo记录中
{
" tags
【文件预览】:
meteor-autoform-tags-typeahead-master
----common()
--------tag.js(982B)
----package.js(848B)
----README.md(1KB)
----tags-typeahead.css(41B)
----tags-typeahead.html(140B)
----tags-typeahead.js(1KB)