@@ -36,18 +36,22 @@ Settings regarding a column can be specified in the table_config:
3636 options: ['CREATE', 'EDIT', 'DELETE', 'DETAILS'],
3737 columns_setting: [
3838 {name: 'id', show: false, edit: true, width: '200px'},
39- {name: 'job', show: true, edit: true, width: '100px'},
39+ {name: 'job', show: true, edit: true, width: '100px', description: 'Your job' },
4040 {name: 'name', show: true, edit: true, width: '200px',
41- {name: 'private', show: true, edit: false, width: '200px'},
41+ {name: 'private', show: true, edit: false, width: '200px', description: 'Your thigs' },
4242 {name: 'url', show: true, edit: true, width: '200px', type: 'html'}
4343 ],
4444 details_text: 'detail' // replace the standard icon with an text-link
4545 }
4646```
47-
48- There are two types:
49- - text: Default.
50- - html: NEW! The value/text will be interpreted as HTML.
47+ - * name* : the key from your data-array. This is used as column name.
48+ - * show* : true/false; Should this column displayed?
49+ - * edit* : true/false; Set this field editable or not.
50+ - * width* : px/em; set the field width.
51+ - * description* : A tooltip for the columns name.
52+ - * type* : There are two types:
53+ - * text* : Default.
54+ - * html* : The value/text will be interpreted as HTML.
5155
5256[ See example:] ( https://ivosdc.github.io/svelte-generic-crud-table/ " GeneralCrudTable Example ")
5357
@@ -150,9 +154,9 @@ There are two types:
150154 options: [' CREATE' , ' EDIT' , ' DELETE' , ' DETAILS' ],
151155 columns_setting: [
152156 {name: ' id' , show: false , edit: true , width: ' 200px' },
153- {name: ' job' , show: true , edit: true , width: ' 100px' },
157+ {name: ' job' , show: true , edit: true , width: ' 100px' , description : ' Your Job ' },
154158 {name: ' name' , show: true , edit: true , width: ' 200px' },
155- {name: ' private' , show: true , edit: false , width: ' 200px' },
159+ {name: ' private' , show: true , edit: false , width: ' 200px' , description : ' Your things ' },
156160 {name: ' html' , show: true , edit: true , size: ' 200px' , type: ' html' }
157161 ],
158162 details_text: ' detail' // replace the standard icon with an text-link
0 commit comments