focus-comments

0.3.8 • Public • Published

Focus comments

Comments extension for the Focus solution.

image

Installation

npm i -S focus-comments

Please note that you must you React with addons, so choose the appropriate built files to have React.addons defined.

Usage

<FocusComments {...props}/>

Props

  • apiRootUrl (string): the API url,
  • concept (string): the concept to plug the comments on,
  • conceptId (string | number): the concept id,
  • userPictureResolver (function): a function that takes the user id as an input, and returns the user picture url as an ouput,
  • texts :
    • placeholder (string): placeholder for the input field,
    • send (string): send button caption,
    • edit (string): edit button caption,
    • cancel (string): cancel button caption
  • locale (string): application locale (from momentJS)

Package Sidebar

Install

npm i focus-comments

Weekly Downloads

2

Version

0.3.8

License

MIT

Last publish

Collaborators

  • hartorn
  • fconstantin
  • tommass
  • getfocus
  • focusjs
  • c3dr0x
  • jabx