# layui-formTable **Repository Path**: pisheaven/layui-form-table ## Basic Information - **Project Name**: layui-formTable - **Description**: form input搜索以表格提示内容 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 10 - **Created**: 2021-10-12 - **Last Updated**: 2021-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: LayuiPlugin ## README # layui-formTable ## 介绍 ----- form input搜索以表格提示内容 ## 代码示例 ----- ```JS layui.config({ base: '__STATIC__/plugin/layui/common/', //拓展模块的根目录 }) .extend({ formTable: '/formTable/formTable' }); layui.use(['table', 'form', 'formTable'], function () { // 查询自动提示 formTable.render({ elem: 'input[name=parts]', url: "/getPart", width: 730, page: true, limit: 15, // 分页 table: { cols: [[ { type: 'numbers', title: '编码', width: '3%' }, { field: 'peij_no', title: '品牌', width: '10%' }, ]], height: 180, tool: { 'add': (data) => { // 表格tool触发事件 }, }, rowDouble: (data) => { //触发行双击事件 } }, }) }) ```