0.1.7 • Published 5 years ago
⭐️ Features
- RTL Support
- Jest unit testing
- Daily dependabot dependency updates
📦 Installation
npm install river-service
💎 Usage
const opts = {
rtl: false,
};
const userInfo = {
firstname: 'FIRST_NAME',
lastname: 'LAST_NAME',
workspace: 'cyrus.river.im',
phone: '23740077'
};
let riverService = window.RiverService.default;
let srv = new riverService(opts);
srv.onload = () => {
srv.setUserInfo(userInfo).then((res) => {
console.log(res);
});
}
Options
User info object
Property | Default | Type |
---|
firstname | '' | string |
lastname | '' | string |
workspace | 'cyrus.river.im' | string |
phone | 0 | number |
✍️ Methods
- setUserInfo(userInfo)
- toggleVisible(boolean)
toggles visibility of badge
- setRTL(boolean)
✅ Websites built with this lib
- Nested - Nested - Team Commiunication Platform