sorun-input
v1.0.1
Published
SORUN company chat input component
Downloads
6
Keywords
Readme
sorun-input
SOR'UN company chat input component
Important release notes
1.0.0: The first stable version of SOR'UN input
Install
npm install --save sorun-input
Usage
import React, { Component } from 'react'
import MessageInput from 'sorun-input'
class Example extends Component {
render () {
return (
<MessageInput
core={core_variable}
lang={lang_variable}
company={company_variable}
toggleLocationWindow={toggleLocationWindow_variable}
openLogoutWindow={openLogoutWindow_variable}
addToTemp={addToTemp_output_action}
updateTemp={updateTemp_output_action}
removeFromTemp={removeFromTemp_output_action}
/>
)
}
}
Props
| Prop | Description | | :------------------------ |:----------------------------------------------------------------------| | core | The SORUN JS instance the project is working on.| | lang | The language keys values map for displayed test inside the component.| | company | The company object to get the input working modes.| | toggleLocationWindow | Output action for toggling the location window to send a location if its supported.| | openLogoutWindow | Output action for opening the logout window if its supported.| | addToTemp | Output action to add a temporarly messages to the message list (Like upload file) for loading purposes.| | updateTemp | Output action to update a temporarly messages inside the message list (Like upload file) for loading purposes.| | removeFromTemp | Output action to remove a temporarly messages from the message list (Like upload file) for loading purposes.|
License
MIT © SORUN