About layui front page displays the contents of the form

loadTickets function (jsonEntity) { 
        var ID = $ ( "# byId") Val ();. 
        table.render ({ 
            elem: '#test', 
            URL: URL, // write path where call back method 
            height: 450, // set the length of the form, you can also set the width width; 
            toolbar: '#toolbarDemo', // turn on the toolbar, shown here the default icon, you can customize the template, see the documentation 
            page: true, // page: to true when the paging feature is turned on, is false, turn off paging functionality; 
            unresize: false, // whether to disable drag the column width; the default is false 
            the WHERE: jsonEntity, 
            totalRows: to true, // turn on total row 
            limits: [5, 15, 30], // set the number of drop-down bar tab; 
            limit:. 5, is provided per display several // 
            the async: to false, 
            cols: [[{ 
                type: 'CheckBox',// add checkboxes 
                Fixed: 'left' on the left //
            }, {
                field : 'name',title : '名称',    event : 'monthSign',    width : '20%',    align : 'center',    edit : 'text',
                templet : function(row) {
                    return row.name;
                }
            }, {
                field : 'code',title : '编码',    event : 'monthSign',    width : '7%',    align : 'center',    edit : 'text',
                templet : function(row) {
                    return row.code;
                }
            }, {
                field : 'path',title : '路径',    event : 'monthSign',    width:'10%',    align : 'center',    edit : 'text',
                templet : function(row) {
                    return row.path;
                }
            } ] ],
            done : function(res, curr, count) {
                currentPage = curr;
            }
        });

    }

Basically the line a comment. . .

Of course, official documents should be more clear: https://www.layui.com/demo/table/toolbar.html

 

Guess you like

Origin www.cnblogs.com/a973692898/p/11690250.html