|
394 | 394 | } else {
|
395 | 395 | sendModel.q = searchValue;
|
396 | 396 | }
|
397 |
| - |
| 397 | + |
398 | 398 | $filterValue = searchValue;
|
399 | 399 | }}
|
400 | 400 | >
|
401 | 401 | <div class="relative w-full flex items-center">
|
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 | on:click|preventDefault={() => {
|
|
423 | 425 | </div>
|
424 | 426 | <button
|
425 | 427 | type="submit"
|
| 428 | + title="Search" |
426 | 429 | id="{tableId}-searchSubmit"
|
427 | 430 | class="btn variant-filled-primary"
|
428 | 431 | on:click|preventDefault={() => {
|
|
448 | 451 | {#if toggle}
|
449 | 452 | <SlideToggle
|
450 | 453 | name="slider-label"
|
| 454 | + label="Fit to screen" |
451 | 455 | active="bg-primary-500"
|
452 | 456 | size="sm"
|
453 | 457 | checked={fitToScreen}
|
|
461 | 465 | {#if resizable !== 'none'}
|
462 | 466 | <button
|
463 | 467 | type="button"
|
| 468 | + title="Reset column and row sizing" |
464 | 469 | class="btn btn-sm variant-filled-primary rounded-full order-last"
|
465 | 470 | on:click|preventDefault={() =>
|
466 | 471 | resetResize($headerRows, $pageRows, tableId, columns, resizable)}
|
|
470 | 475 | {#if exportable}
|
471 | 476 | <button
|
472 | 477 | type="button"
|
| 478 | + title="Export table data as CSV" |
473 | 479 | class="btn btn-sm variant-filled-primary rounded-full order-last"
|
474 | 480 | on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
|
475 | 481 | >Export as CSV</button
|
|
486 | 492 | {...$tableAttrs}
|
487 | 493 | class="table table-auto table-compact bg-tertiary-500/30 dark:bg-tertiary-900/10 overflow-clip"
|
488 | 494 | id="{tableId}-table"
|
| 495 | + title="Table" |
489 | 496 | >
|
490 | 497 | <!-- If table height is provided, making the top row sticky -->
|
491 | 498 | <thead class={height != null && $pageRows.length > 0 ? `sticky top-0` : ''}>
|
|
511 | 518 | <div class="flex gap-1 whitespace-pre-wrap">
|
512 | 519 | <!-- Adding sorting config and styling -->
|
513 | 520 | <span
|
| 521 | + role="button" |
| 522 | + tabindex="0" |
514 | 523 | class:underline={props.sort.order}
|
515 | 524 | class:normal-case={cell.id !== cell.label}
|
516 | 525 | class:cursor-pointer={!props.sort.disabled}
|
|
0 commit comments