SMART datagrid v.1 > Examples

Back  Forward

Barcode Cell Renderer  Example
no-lite

目前在SMART datagrid格模块中, 具有显示Code39Code128等条码的Code39CellRendererCode128CellRenderer等两个渲染器。 Code39是显示'A' ~ 'Z'大写字母、数字以及相关的几个符号的简单的符号集。 Code128可以显示所有Ascii编码集。 

Grid - 1
rows

两个渲染器在设置列时,分别通过'code39''code128'指定type。 

Code -1
    grid.setColumns([{
        name: 'colId',
        fieldName: 'id'
        type: 'code39'
    }, {
        name: 'colName',
        fieldName: 'name'
        type: 'code128'
    },
    ...
    ];

查看源代码 JSP 

See Also
Code39CellRenderer
Code128CellRenderer
Examples
形状单元格渲染器
图像单元格渲染器