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.colTemplate
Default values for the column
Object, default = {...} see below
Once a column is created it will get default values as follows
{ text : '', // column text (can be a function) field : '', // field name to map the column to a record size : null, // size of column in px or % min : 20, // minimum width of column in px max : null, // maximum width of column in px gridMinWidth : null, // minimum width of the grid when column is visible sizeCorrected : null, // read only, corrected size (see explanation below) sizeCalculated : null, // read only, size in px (see explanation below) sizeOriginal : null, // size as defined sizeType : null, // px or % hidden : false, // indicates if column is hidden sortable : false, // indicates if column is sortable sortMode : null, // sort mode ('default'|'natural'|'i18n') or custom compare function searchable : false, // bool/string: int,float,date,... or an object to create search field resizable : true, // indicates if column is resizable hideable : true, // indicates if column can be hidden autoResize : null, // indicates if column can be auto-resized by double clicking on the resizer attr : '', // string that will be inside the
tag style : '', // additional style for the td tag render : null, // string or render function title : null, // string or function for the title property for the column cells tooltip : null, // string for the title property for the column header editable : {}, // editable object (see explanation below) frozen : false, // indicates if the column is fixed to the left info : null, // info bubble, can be bool/object clipboardCopy : false, // if true (or string or function), it will display clipboard copy icon }
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus