getSetting(setting)
Name | Type | Description |
---|---|---|
setting | string | Name of the setting |
Usage:
// get the initial latitude from settings
var latitude = sdk.getSetting('init-lat');
Returns:
Value of the setting. For example if the settings property for custom editor in appinfo.json is:
"settings":[
{
"id": "foo",
"type": "text",
"name": "Foo",
},
...
...
]
Then this 'foo' setting will appear in the field definition for content administrator to configure. Suppose if the content admin configured this setting to have a value 'bar', then sdk.getSetting('foo') will return 'bar'.