mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-15 21:29:23 +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
1 KiB
1 KiB
| title |
|---|
| saveStore (KSAVE) |
Summary
Save an option store value to a cookie for the active keyboard.
Syntax
keyman.interface.saveStore(storeName, value);
or
KeymanWeb.KSAVE(storeName, value); // Shorthand
Parameters
storeName- Type:
string - The option
storename, which will be embedded in the cookie's name. value- Type:
string - The option value to save.
Return Value
booleantrueif the operation is successful, otherwisefalse.
Description
keyman.interface.loadStore() and keyman.interface.saveStore()provide API-based functionality similar to that of the keyboard language's option store. Values will persist across multiple visits to the site by use of cookies. However, these functions cannot interact with stores from existing compiled keyboards due to compilation optimizations. As such, they are most useful for custom-coded web-oriented keyboards.