|
402 | 402 | <input
|
403 | 403 | class="input p-2 border border-primary-500"
|
404 | 404 | type="text"
|
| 405 | + title="Search within all table rows" |
405 | 406 | bind:value={searchValue}
|
406 | 407 | placeholder="Search rows..."
|
407 | 408 | id="{tableId}-search"
|
408 | 409 | /><button
|
409 | 410 | type="reset"
|
| 411 | + title="Clear search" |
410 | 412 | id="{tableId}-searchReset"
|
411 | 413 | class="absolute right-3 items-center"
|
412 | 414 | aria-label="Clear search"
|
|
424 | 426 | </div>
|
425 | 427 | <button
|
426 | 428 | type="submit"
|
| 429 | + title="Search" |
427 | 430 | id="{tableId}-searchSubmit"
|
428 | 431 | class="btn variant-filled-primary"
|
429 | 432 | on:click|preventDefault={() => {
|
|
449 | 452 | {#if toggle}
|
450 | 453 | <SlideToggle
|
451 | 454 | name="slider-label"
|
| 455 | + label="Fit to screen" |
452 | 456 | active="bg-primary-500"
|
453 | 457 | size="sm"
|
454 | 458 | checked={fitToScreen}
|
|
462 | 466 | {#if resizable !== 'none'}
|
463 | 467 | <button
|
464 | 468 | type="button"
|
| 469 | + title="Reset column and row sizing" |
465 | 470 | class="btn btn-sm variant-filled-primary rounded-full order-last"
|
466 | 471 | on:click|preventDefault={() =>
|
467 | 472 | resetResize($headerRows, $pageRows, tableId, columns, resizable)}
|
|
471 | 476 | {#if exportable}
|
472 | 477 | <button
|
473 | 478 | type="button"
|
| 479 | + title="Export table data as CSV" |
474 | 480 | class="btn btn-sm variant-filled-primary rounded-full order-last"
|
475 | 481 | on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
|
476 | 482 | >Export as CSV</button
|
|
487 | 493 | {...$tableAttrs}
|
488 | 494 | class="table table-auto table-compact bg-tertiary-500/30 dark:bg-tertiary-900/10 overflow-clip"
|
489 | 495 | id="{tableId}-table"
|
| 496 | + title="Table" |
490 | 497 | >
|
491 | 498 | <!-- If table height is provided, making the top row sticky -->
|
492 | 499 | <thead class={height != null && $pageRows.length > 0 ? `sticky top-0` : ''}>
|
|
512 | 519 | <div class="flex gap-1 whitespace-pre-wrap">
|
513 | 520 | <!-- Adding sorting config and styling -->
|
514 | 521 | <span
|
| 522 | + role="button" |
| 523 | + tabindex="0" |
515 | 524 | class:underline={props.sort.order}
|
516 | 525 | class:normal-case={cell.id !== cell.label}
|
517 | 526 | class:cursor-pointer={!props.sort.disabled}
|
|
0 commit comments