TinyDB Component
Properties
namespace Namespace for storing data.
| Data type: string |
||
| Designer Writable | true |
<tinydb name="tinydbName" namespace="Test namespace"> |
| Code Writeable | true |
tinydbName.namespace = "Test namespace" |
| Code Readable | true |
let variable = tinydbName.namespace |
class The styling class of the the component
| Data type: string |
||
| Designer Writable | true |
<tinydb name="tinydbName" class="Test class"> |
| Code Writeable | false | |
| Code Readable | false | |
id The styling id of the the component
| Data type: string |
||
| Designer Writable | true |
<tinydb name="tinydbName" id="Test id"> |
| Code Writeable | false | |
| Code Readable | false | |
name The name of the component that will be used to refer to it in code.
| Data type: string |
||
| Designer Writable | true |
<tinydb name="tinydbName" name="testComponent"> |
| Code Writeable | false | |
| Code Readable | false | |
Methods
| Method name | Description | Parameters | ||||
|---|---|---|---|---|---|---|
| clearAll |
Clear the entire data store. tinydbName.clearAll() |
|
||||
| clearTag |
Clear the entry with the given tag. tinydbName.clearTag(tag) tinydbName.clearTag("Test tag") |
|
||||
| getTags |
Return a list of all the tags in the data store. tinydbName.getTags() |
|
||||
| getValue |
Retrieve the value stored under the given tag. If there's no such tag, then return valueIfTagNotThere. tinydbName.getValue(tag, valueIfTagNotThere) tinydbName.getValue("Test tag", "any") |
|
||||
| storeValue |
Store the given valueToStore under the given tag. The storage persists on the phone when the app is restarted. tinydbName.storeValue(tag, valueToStore) tinydbName.storeValue("Test tag", "any") |
|