@spaethtech/svelte-ui 0.21.1-dev.113.5a2e853 → 0.21.1-dev.115.1af903e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/components.md
CHANGED
|
@@ -437,8 +437,10 @@ Config-driven, responsive 12-column data table over a `DataGrid`.
|
|
|
437
437
|
standard-height row reflecting the fetch result — a **spinner + "Loading…"** while `result.loading`,
|
|
438
438
|
**"No results"** once settled and empty, or the **error** (styled `--ui-color-error`) when
|
|
439
439
|
`result.error` is set (a string as-is, an `Error`'s `.message`, else the localized `loadFailed`). An
|
|
440
|
-
errored result never spins, and the row
|
|
441
|
-
|
|
440
|
+
errored result never spins, and the row is **exactly one data row tall** in every state (its
|
|
441
|
+
invisible lead/tail spacers carry the control height), so the table never jumps between Loading,
|
|
442
|
+
rows, No results and error — and you don't need a separate page banner that contradicts a "No
|
|
443
|
+
results" table. (A long error wraps and grows the row; one line is the minimum, not a fixed height.) With `localFetch`, drive this by
|
|
442
444
|
passing `loading`/`error` getters (below); a remote `query()` that exposes `.error` gets it for free.
|
|
443
445
|
(`DataGrid.error` is the query-*parse* error surfaced by `<Query>` — a bad filter — which is distinct
|
|
444
446
|
from this fetch/load error.)
|