@@ -161,7 +161,7 @@ export class DataGrid extends TailwindElement {
161
161
if ( ! this . columns ?. length ) return ;
162
162
163
163
const cssWidths = this . columns . map ( ( col ) => col . width ?? "1fr" ) ;
164
- const showFooter = this . addRows && this . addRowsInputValue ;
164
+ const addRowsInputValue = this . addRows && this . addRowsInputValue ;
165
165
166
166
return html `
167
167
< btrix-table
@@ -222,7 +222,7 @@ export class DataGrid extends TailwindElement {
222
222
tw `bg-[var(--sl-panel-background-color)] leading-none` ,
223
223
! this . stickyHeader && [
224
224
tw `border` ,
225
- showFooter ? tw `rounded-t` : tw `rounded ` ,
225
+ addRowsInputValue ? tw `rounded-t` : tw `rounded ` ,
226
226
] ,
227
227
) }
228
228
@btrix-remove =${ ( e : CustomEvent < RowRemoveEventDetail > ) => {
@@ -238,7 +238,7 @@ export class DataGrid extends TailwindElement {
238
238
${ this . renderRows ( ) }
239
239
</ btrix-table-body >
240
240
241
- ${ showFooter
241
+ ${ addRowsInputValue
242
242
? html `
243
243
< btrix-table-footer
244
244
class =${ clsx (
@@ -257,14 +257,14 @@ export class DataGrid extends TailwindElement {
257
257
@click =${ ( ) =>
258
258
this . rowsController . addRows (
259
259
this . defaultItem ,
260
- this . addRowsInputValue ,
260
+ addRowsInputValue ,
261
261
) }
262
262
>
263
263
< sl-icon name ="plus-lg "> </ sl-icon >
264
264
${ msg ( "Add" ) }
265
265
</ btrix-navigation-button >
266
266
< btrix-inline-input
267
- value =${ this . addRowsInputValue }
267
+ value =${ addRowsInputValue }
268
268
min ="1"
269
269
max="99"
270
270
minlength="1"
@@ -279,7 +279,7 @@ export class DataGrid extends TailwindElement {
279
279
} }
280
280
> </ btrix-inline-input >
281
281
< span class ="ml-2.5 text-neutral-500 ">
282
- ${ msg ( "more" ) } ${ pluralOf ( "rows" , this . addRowsInputValue ) }
282
+ ${ msg ( "more" ) } ${ pluralOf ( "rows" , addRowsInputValue ) }
283
283
</ span >
284
284
</ btrix-table-cell >
285
285
</ btrix-table-row >
0 commit comments