Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustawia wartość danej właściwości. Zwraca błąd, jeśli podany klucz nie jest obsługiwany przez obiekt. Sprawdź parametry konstruktora, aby zobaczyć, które właściwości można ustawić.
Zwraca ui.data.ActiveDictionary.
Wykorzystanie
Zwroty
DrawingTools.set(keyOrDict, value)
ui.data.ActiveDictionary
Argument
Typ
Szczegóły
to: ui.data.activedictionary
ui.data.ActiveDictionary
Instancja ui.data.ActiveDictionary.
keyOrDict
Object|String
Klucz właściwości do ustawienia lub słownik par klucz/wartość do ustawienia w obiekcie.
value
Obiekt (opcjonalnie)
Nowa wartość właściwości. Jest to wymagane, gdy pierwszym argumentem jest ciąg klucza.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["Sets the value of a specified property within a ui.data.ActiveDictionary object."],["Throws an error if the provided key is not a supported property, refer to the constructor parameters for valid properties."],["Accepts either a single key-value pair or a dictionary of key-value pairs to modify the object's properties."],["Returns the updated ui.data.ActiveDictionary instance, enabling method chaining."]]],["The `set` method of `ui.data.ActiveDictionary` modifies object properties. It accepts either a `keyOrDict` (string or object) and optionally a `value`. If `keyOrDict` is a string, `value` is mandatory, representing the new property value. If `keyOrDict` is an object it is a dictionary containing key/value pairs that will be applied to the object. Invalid keys trigger an error. It returns the modified `ui.data.ActiveDictionary` instance.\n"]]