w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Grid
Overview
Events
Properties
Methods
w2grid.lineNumberWidth
Width for the line number column.
Integer, default = 34
This property width of the line number column. This property can be set during object creation:
let grid = new w2grid({ name: 'grid', show: { lineNumbers: true }, lineNumberWidth: 50, columns : [ { field: 'recid', text: 'ID', size: '50px' }, { field: 'lname', text: 'Last Name', size: '30%' }, { field: 'fname', text: 'First Name', size: '30%' }, { field: 'email', text: 'Email', size: '40%' }, { field: 'sdate', text: 'Start Date', size: '120px' }, { field: 'sdate', text: 'End Date', size: '120px' } ] });
Or any time during run-time:
w2ui.grid.lineNumberWidth = 100; w2ui.grid.refresh();
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus