# layui inputTag **Repository Path**: zzf_1/layui-inputTag ## Basic Information - **Project Name**: layui inputTag - **Description**: layui 扩展组件inputTags - **Primary Language**: JavaScript - **License**: AFL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2019-04-04 - **Last Updated**: 2023-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # layui扩展组件 inputTags #### 项目介绍 input输入标签插件 #### 参数说明 * @param elem (必填参数) 触发对象的id/class/tag * @param content 数据源,需要显示的数据 * @param inputType 输入框类型 * @param theme 标签背景颜色 * @param placeholder input框的水印(提示文字) * @param regular 正则验证。不填写改参数这不开启验证 * regular => rule 正则验证规则,支持自己输入表达式,或者使用内置验证(mobile手机、email邮箱、no_chinese非中文) * regular => err_callback 验证失败回调 (code 错误代码 msg 错误提示) * @param beforeEnter 在回车之前判断的函数,可以使用return false阻止回车时间 * @param afterEnter 回车后的回调函数,返回当前框所有的值 ____ #### 函数说明(渲染后可用) * @function clearAll() 参数 无参 清空输入框标签 * @function reload() 参数 一维数组 重新渲染输入框的标签,每次重新渲染都会清除旧数据 * @function getValue() 参数 无参 获取输入框中的标签 * @function on() 参数 操作类型,回调方法 目前操作类型只有 delTag 再删除标签后的回调方法 #### Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)