mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-16 05:39:24 +00:00
Deprecate the following obsolete functions and properties: * `keyman.helpURL` * `keyman.util.rgba` * `keyman.util.toFloat` * `keyman.util.toNumber` * `keyman.util.toNzString` Use correct language for code blocks in Keyman Engine for Web documentation. Test-bot: skip
31 lines
489 B
Markdown
31 lines
489 B
Markdown
---
|
|
title: setOption
|
|
---
|
|
|
|
## Summary
|
|
|
|
Set a KeymanWeb, On-Screen Keyboard or User Interface option value.
|
|
|
|
## Syntax
|
|
|
|
```js
|
|
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).
|