Class TextBox

Define a TextBox block to be displayed into a JBlocks.

Class Summary
Constructor Attributes Constructor Name and Description
 

A TextBox block wraps a Text block into a box, so it can be maximized or closed.

Method Summary

Class Detail

TextBox()

A TextBox block wraps a Text block into a box, so it can be maximized or closed.

The constructor should not be invoked directly but JBlocks#newBlock or JBlocks#addNewBlock should be used instead.

See:
Text

Method Detail

  • init(layout, options, text)
    Initializes a TextBox block. The method is invoked by the jBlocks core and must never be called directly.
    Parameters:
    {Object} layout Optional
    see Box#init
    {Object} options Optional
    in addition to options defined in Box#init:
    {String} text Optional, Default: ""
    the text to be displayed in the box.
    {Boolean} options.multiline Optional, Default: true
    should this text be displayed on a single or several lines.
    {String} options.containerTag Optional, Default: "p"
    the HTML tag enclosing the text.