sorun-input

1.0.1 • Public • Published

sorun-input

SOR'UN company chat input component

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i sorun-input

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

97.7 kB

Total Files

6

Last publish

Collaborators

  • ozgur_sorun
  • amhaish
  • ozanknskl
  • yilmes
  • ozanbozkurt