Skip to content

API Reference / @gtkx/react / index / useBindSetting

Function: useBindSetting()

useBindSetting<K>(__namedParameters): void

Defined in: hooks/use-bind-setting.d.ts:22

Binds a GSettings key to a property of a GObject, keeping the two in sync until the component unmounts. property is given in camelCase, and flags defaults to Gio.SettingsBindFlags.DEFAULT, a two-way bind.

Type Parameters

K

K extends SettingsSchemaKeys

Parameters

__namedParameters

UseBindSettingOptions<K>

Returns

void

Released under the MPL-2.0 License.