The variables dialog now uses the tokens panel, so useVariablesEditor, useVariablesTable, useVariablesDialogState, and the table-only formatModeValue, parseVariableValue, and shortName helpers have no users. Removing them drops the @tanstack/vue-table dependency; their SDK pages redirect to useVariables.
620 B
620 B
| title | description |
|---|---|
| useVariables | Odczytywanie i zmiana kolekcji, zmiennych, trybów i wartości. |
useVariables
useVariables() udostępnia niskopoziomowy stan i działania edytora zmiennych.
Użyj composable do bezpośredniego zarządzania kolekcjami, aktywnymi trybami, filtrami i operacjami tworzenia, odczytu, aktualizacji i usuwania bez gotowej tabeli lub okna.
const variables = useVariables()
Zwracane dane obejmują collections, activeCollection, activeModes, variables, searchTerm oraz działania do tworzenia, przemianowywania, usuwania i aktualizowania zmiennych i kolekcji.