|
162 | 162 | export let EnableCursor = false; |
163 | 163 | export let CurrentSelectedRow = 0; |
164 | 164 | export let Striped=false; |
165 | | - export let tableWidth=0; // allow user to define table width |
| 165 | + export let tableWidth = 0; // allow user to define table width. Defining this will __override__ last col's width settings to the reminding width |
166 | 166 | export let onCellUpdate = () => {} |
167 | 167 | export let onHeaderUpdate = () => {} |
168 | 168 |
|
|
1009 | 1009 | <div |
1010 | 1010 | class="grid-cell" |
1011 | 1011 | on:mousedown={event => onColumnDragStart(event, i)} |
1012 | | - style="z-index: {getCellZIndex(__affixedColumnIndices, i)}; left: {getCellLeft( |
1013 | | - { i, columnWidths, __affixedColumnIndices, __scrollLeft } |
1014 | | - )}px; height: {rowHeight}px; line-height: {rowHeight}px; width: { |
1015 | | - i===columnWidths.length-1 ? lastColWidth+1 : columnWidths[i]+'px' |
1016 | | - }; {allowColumnReordering ? 'cursor:pointer;' : ''}" |
1017 | | - title={column.display || ''} |
1018 | 1012 | use:dragCopy={allowColumnReordering} |
| 1013 | + style=" |
| 1014 | + z-index: {getCellZIndex(__affixedColumnIndices, i)}; |
| 1015 | + left: {getCellLeft({ i, columnWidths, __affixedColumnIndices, __scrollLeft })}px; |
| 1016 | + height: {rowHeight}px; line-height: {rowHeight}px; |
| 1017 | + width: {(i===columnWidths.length-1 ? lastColWidth+1 : columnWidths[i])+'px'}; |
| 1018 | + {allowColumnReordering ? 'cursor:pointer;' : ''}" |
| 1019 | + title={column.display || ''} |
1019 | 1020 | role="columnheader"> |
1020 | 1021 | {#if column.headerComponent} |
1021 | 1022 | <svelte:component this={column.headerComponent} {column} |
|
0 commit comments