@@ -123,7 +123,8 @@ Refer to [Grid.js documentation](https://gridjs.io/docs/config/) for specific co
123123 return {
124124 // REQUIRED:
125125
126- // An array containing strings of column headers (`columns` in the Grid.js API)
126+ // An array containing strings of column headers
127+ // `columns` in the Grid.js API
127128 cols: [' col 1' , ' col 2' ],
128129
129130 // OR an array containing objects defining column headers
@@ -139,7 +140,8 @@ Refer to [Grid.js documentation](https://gridjs.io/docs/config/) for specific co
139140 }
140141 ],
141142
142- // AND EITHER an array containing row data (`data` in the Grid.js API)
143+ // AND EITHER an array containing row data
144+ // `data` in the Grid.js API
143145 rows: [
144146 [' row 1 col 1' , ' row 1 col 2' ],
145147 [' row 2 col 1' , ' row 2 col 2' ]
@@ -186,7 +188,8 @@ Refer to [Grid.js documentation](https://gridjs.io/docs/config/) for specific co
186188 // Boolean to automatically set table width
187189 autoWidth: true / false ,
188190
189- // Object with CSS class names (`className` in the Grid.js API)
191+ // Object with CSS class names
192+ // `className` in the Grid.js API
190193 classNames: {},
191194
192195 // Localization dictionary object
@@ -201,7 +204,8 @@ Refer to [Grid.js documentation](https://gridjs.io/docs/config/) for specific co
201204 // Boolean or sort settings object
202205 sort: true / false || {},
203206
204- // Object with CSS styles (`style` in the Grid.js API)
207+ // Object with CSS styles
208+ // `style` in the Grid.js API
205209 styles: {},
206210
207211 // String with name of theme or 'none' to disable
@@ -241,9 +245,10 @@ this.cols = [
241245 name: ' Actions' ,
242246 formatter : (cell , row ) => {
243247 return this .$gridjs .h (' button' , {
244- className: ' py-2 mb-4 px-4 border rounded-md text-white bg-blue-600' ,
245- onClick : () => alert (` Editing "${ row .cells [0 ].data } " "${ row .cells [1 ].data } "` )
246- } ' Edit' );
248+ onClick : () => alert (`
249+ Editing "${ row .cells [0 ].data } "
250+ ` )
251+ }, ' Edit' )
247252 }
248253 },
249254 { ... },
0 commit comments