API Docs for:
Show:

comm.BaseCommView Class

The superclass for displaying a message history.

Constructor

comm.BaseCommView

(
  • params
)

Parameters:

  • params Object

    an object with information for displaying the view

    • parentElem HTMLDivElement

      the HTMLDivElement where the view resides

    • message String

      a message to display when no output has been generated

    • id String

      the prefix id for the element

    • haveInput Boolean

      whether the view is display-only or not

Item Index

Methods

resetLines

(
  • lines
)

Sets new content for the display

Parameters:

  • lines Array

    a list of objects with three attributes: source(the player name attached to the event), message(the contents of the line), and className(the color of the object)

setController

(
  • controller
)

Sets the controller and action for the input element

Parameters:

  • controller Object

    The controller