Class humhub\modules\ui\widgets\BaseImage

Inheritancehumhub\modules\ui\widgets\BaseImage » humhub\components\Widget » yii\base\Widget
Subclasseshumhub\modules\space\widgets\Image, humhub\modules\ui\content\widgets\ContainerImageSet, humhub\modules\user\widgets\Image

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$height integer The height of the image humhub\modules\ui\widgets\BaseImage
$htmlOptions array Html options for the generated tag humhub\modules\ui\widgets\BaseImage
$imageOptions array Optional html options for the image tag humhub\modules\ui\widgets\BaseImage
$linkOptions array Html Options of the link humhub\modules\ui\widgets\BaseImage
$render boolean If set to false this widget won't be rendered humhub\components\Widget
$showTooltip string Show tooltip with further information about the space or the user (Only available when link is true) humhub\modules\ui\widgets\BaseImage
$tooltipText string The tooltip text (default is users or spaces display name) humhub\modules\ui\widgets\BaseImage
$widgetLayout string Defines an optional layout humhub\components\Widget
$width integer The width of the image humhub\modules\ui\widgets\BaseImage

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
init() humhub\modules\ui\widgets\BaseImage
process() Process is a wrapper for the run method humhub\components\Widget
widget() Creates a widget instance and runs it. humhub\components\Widget

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_CREATE humhub\libs\WidgetCreateEvent An event raised before creating a widget. humhub\components\Widget

Property Details

$height public property

The height of the image

public integer $height null
$htmlOptions public property

Html options for the generated tag

public array $htmlOptions = []
$imageOptions public property

Optional html options for the image tag

public array $imageOptions = []

Create link to the space or user profile

public boolean $link false
$linkOptions public property

Html Options of the link

public array $linkOptions = []
$showTooltip public property (available since version 1.3)

Show tooltip with further information about the space or the user (Only available when link is true)

public string $showTooltip false
$tooltipText public property (available since version 1.3)

The tooltip text (default is users or spaces display name)

public string $tooltipText null
$width public property

The width of the image

public integer $width 50

Method Details

init() public method

public void init ( )