Home Reference Source
public class | source

CommentBox

Extends:

react~React.ComponentBaseView → CommentBox

Render the new comment box and container for individual note comments.

Constructor Summary

Public Constructor
public

constructor(props: *)

Member Summary

Public Members
public

service: *

public

state: *

Method Summary

Public Methods
public
public
public
public

confirm(e: *)

Save a new note comment and fetch any pending updates

public

handleEditorChange(raw: *, state: *, name: *)

public

onChange(state: *)

public

Handle CMD+Enter to save comment

public

render(): *

Inherited Summary

From class BaseView
public

Public Constructors

public constructor(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Members

public service: * source

public state: * source

Public Methods

public componentDidMount() source

public componentWillMount() source

public componentWillUnmount() source

public confirm(e: *) source

Save a new note comment and fetch any pending updates

Params:

NameTypeAttributeDescription
e *

public handleEditorChange(raw: *, state: *, name: *) source

Params:

NameTypeAttributeDescription
raw *
state *
name *

public onChange(state: *) source

Params:

NameTypeAttributeDescription
state *

public onInputKeyDown(e: *) source

Handle CMD+Enter to save comment

Params:

NameTypeAttributeDescription
e *

public render(): * source

Return:

*