1.0.2 • Published 2 years ago

@jsmine/mention-observer v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

mention-observer

It is a pluggable piece of software which is indented to be used with any frontend framework. It observes user input for the assignd node.

api:

Mention observer exposes set function. Set accepts object in parameter.

set object strucure

{ editArea: node, value: {rawText: string, mentions: { id: string, value: string}, ... }, options: { id: sring, value: string } ,... , callback: function }

callback is called with object

callBack object structure

{ rawText: string, mentions: { id: string, value: string }, ... , searchKey: string }