spiegel-keyman/web/docs/engine/reference/util/setOption.md
Marc Durdin 6c145cb775 refactor(web): move web engine help to app repo
Note: build.sh updated to make sure that test:help build action:target
doesn't also call test.sh by adding `:_all` meta-target.

Note: CI will need a new help-keyman-com.sh build step to deploy web
engine help.

Fixes: #12347
2024-10-31 11:00:06 +07:00

31 lines
488 B
Markdown

---
title: setOption
---
## Summary
Set a KeymanWeb, On-Screen Keyboard or User Interface option value.
## Syntax
```c
keyman.util.setOption(optionName, value);
```
### Parameters
`optionName`
: Type: `string`
: The named initialization option.
`value`
: Type: `string|Object` *optional*
: The value the option will be set to. Clears the option's current value if left blank.
### Return Value
`undefined`
## Description
See also [`keyman.util.getOption()`](getOption).