Get User Settings BX24.userOption.get
BX24.userOption.get(string name): mixed;
The method BX24.userOption.get returns the value of the setting with the name name for the current user.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
name* |
Parameter code |
Code Examples
BX24.init(() => {
BX24.userOption.set('param_str', 'str');
BX24.userOption.set('param_numb', 1);
BX24.userOption.set('param_obj', {foo: 'bar'});
console.log(BX24.userOption.get('param_str')); //will return str
console.log(BX24.userOption.get('param_numb')); //will return 1
console.log(BX24.userOption.get('param_obj')); //will return {foo: 'bar'}
});
How to Use Examples in Documentation
Continue Learning
- Set Settings for User BX24.userOption.set
- Set Settings for the Application BX24.appOption.set
- Get Application Settings BX24.appOption.get
Copied
Previous