API Docs for: 0.25.0
Show:

File: addon/components/comment-pane/component.js

import Ember from 'ember';
import layout from './template';

/**
 * @module ember-osf
 * @submodule components
 */

/**
 * Display a list of comments, as well as a form to submit new comments.
 * See CommentableMixin for controller actions that can be used with this component.
 *
 * Sample usage:
 * ```handlebars
 * {{comment-pane
 *   comments=comments
 *   addComment=(action 'addComment')
 *   editComment=(action 'editComment')
 *   deleteComment=(action 'deleteComment')
 *   restoreComment=(action 'restoreComment')
 *   reportComment=(action 'reportComment')}}
 * ```
 * @class comment-pane
 * @param {Comment[]} comments An array of comments to be displayed
 * @param {action} addComment
 * @param {action} editComment
 * @param {action} deleteComment
 * @param {action} restoreComment
 * @param {action} reportComment
 */
export default Ember.Component.extend({
    layout,
    i18n: Ember.inject.service(),
    comments: null
});