mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
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
32 lines
562 B
Markdown
32 lines
562 B
Markdown
---
|
|
title: getOption
|
|
---
|
|
|
|
## Summary
|
|
|
|
Get a KeymanWeb, On-Screen Keyboard or User Interface option value.
|
|
|
|
## Syntax
|
|
|
|
```c
|
|
keyman.util.getOption(optionName, dflt);
|
|
```
|
|
|
|
### Parameters
|
|
|
|
`optionName`
|
|
: Type: `string`
|
|
: The named initialization option.
|
|
|
|
`dflt`
|
|
: Type: `string|Object` *optional*
|
|
: The value to return if the option is not set.
|
|
|
|
### Return Value
|
|
|
|
`string|Object`
|
|
: The value of the option (if set). If not set and no value is provided for `dflt`, returns the empty string.
|
|
|
|
## Description
|
|
|
|
See also [`keyman.util.setOption()`](setOption).
|