|
12 | 12 | <body> |
13 | 13 | <h1><crud-table></crud-table></h1> |
14 | 14 | <p>Agnostic web-component for object-arrays with CRUD functionality.</p> |
15 | | -<span style="background-color: #dddddd; padding: 0.4em; display:inline-block">> npm install svelte-generic-crud-table</span> |
| 15 | +<span style="background-color: #dddddd; padding: 0.4em; display:inline-block">> npm install svelte-generic-crud-table --save-dev</span> |
16 | 16 | <p></p> |
| 17 | +<blockquote><pre><code> |
| 18 | +const table_config = { |
| 19 | + name: 'Awesome', |
| 20 | + options: ['CREATE', 'EDIT', 'DELETE', 'DETAILS'], |
| 21 | + columns_setting: [ |
| 22 | + {name: 'id', show: false, edit: true, width: '0px'}, |
| 23 | + {name: 'job', show: true, edit: true, width: '150px', description: 'The job'}, |
| 24 | + {name: 'name', show: true, edit: true, width: '150px', tooltip: true}, |
| 25 | + {name: 'private', show: true, edit: false, width: '200px', description: 'your things', tooltip: true}, |
| 26 | + {name: 'html', show: true, edit: true, width: '500px', type: 'html', description: 'You can use HTML', tooltip: true} |
| 27 | + ], |
| 28 | + details_text: 'detail' // replace the standard icon with an text-link |
| 29 | +} |
| 30 | +</code></pre></blockquote> |
17 | 31 | <hr> |
18 | 32 | <crud-table></crud-table> |
19 | 33 | <hr> |
20 | 34 | </span style="text-align: right"><a href="https://ivolution.one">ivolution.one product - MIT License</a> |
21 | 35 | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7V5M288MUT7GE&source=url">donate |
22 | 36 | </a></p> |
23 | 37 | <img src="https://travis-ci.com/ivosdc/svelte-generic-crud-table.svg?branch=master"> |
24 | | -<a rel="noopener noreferrer" href='https://coveralls.io/github/ivosdc/svelte-generic-crud-table?branch=master'><img src='https://coveralls.io/repos/github/ivosdc/svelte-generic-crud-table/badge.svg?branch=master' alt='Coverage Status' /></a> |
| 38 | +<a rel="noopener noreferrer" href='https://coveralls.io/github/ivosdc/svelte-generic-crud-table?branch=master'><img |
| 39 | + src='https://coveralls.io/repos/github/ivosdc/svelte-generic-crud-table/badge.svg?branch=master' |
| 40 | + alt='Coverage Status'/></a> |
25 | 41 |
|
26 | | -<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7V5M288MUT7GE&source=url" target="_blank"> |
| 42 | +<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7V5M288MUT7GE&source=url" |
| 43 | + target="_blank"> |
27 | 44 | <img src="https://github.com/ivosdc/svelte-generic-crud-table/raw/master/assets/donate.gif" title="donate"> |
28 | 45 | </a></p> |
29 | 46 | </body> |
|
0 commit comments