Class Link

Define a Link block to be displayed into a JBlocks.

Class Summary
Constructor Attributes Constructor Name and Description
 
Link()

A Link block displays a clickable text.

Method Summary

Class Detail

Link()

A Link block displays a clickable text.

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

Method Detail

  • init(layout, options)
    Initializes an Input block. The method is invoked by the jBlocks core and must never be called directly.
    Parameters:
    {Object} layout Optional
    see Block#init.
    {Object} options Optional
    in addition to base class options Text#init:
    {Function} options.onClick Optional
    a function to be called when the block is clicked.
    {Object} options.attributes Optional
    an object representing the attributes (keys and values) to be assigned to the clickable text element.
    {String} options.iconUrl Optional
    the optional icon to be displayed in the link.
    {String} options.iconPosition Optional
    the left or right position for the icon.
    {String} options.noIconOverlay Optional, Default: "true"
    if set, the link text won't overlay the icon.
    {String} options.textAlign Optional, Default: "center"
    the text in the button is aligned to the given center, left or right value.
    {Integer} options.minTextW Optional, Default: 1
    if the block virtual width is below this value, the text is not displayed.