Class humhub\widgets\Label

Inheritancehumhub\widgets\Label » humhub\widgets\BootstrapComponent » humhub\components\Widget » yii\base\Widget
Subclasseshumhub\modules\topic\widgets\TopicLabel
Available since version1.2.2

Labels for Wall Entries This widget will attached labels like Pinned, Archived to Wall Entries

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__toString() humhub\widgets\BootstrapComponent
action() Adds a data-action-click handler to the button. humhub\widgets\Label
asColor() humhub\widgets\BootstrapComponent
asString() humhub\widgets\BootstrapComponent
color() humhub\widgets\BootstrapComponent
cssClass() humhub\widgets\BootstrapComponent
danger() humhub\widgets\BootstrapComponent
defaultType() humhub\widgets\BootstrapComponent
getComponentBaseClass() humhub\widgets\Label
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
getTypedClass() humhub\widgets\Label
getWidgetOptions() humhub\widgets\Label
icon() humhub\widgets\BootstrapComponent
id() humhub\widgets\BootstrapComponent
info() humhub\widgets\BootstrapComponent
instance() humhub\widgets\BootstrapComponent
left() humhub\widgets\BootstrapComponent
lg() humhub\widgets\BootstrapComponent
none() humhub\widgets\BootstrapComponent
options() humhub\widgets\BootstrapComponent
primary() humhub\widgets\BootstrapComponent
process() Process is a wrapper for the run method humhub\components\Widget
renderComponent() humhub\widgets\Label
right() humhub\widgets\BootstrapComponent
run() humhub\widgets\BootstrapComponent
setText() humhub\widgets\BootstrapComponent
setType() humhub\widgets\BootstrapComponent
sm() humhub\widgets\BootstrapComponent
sort() humhub\widgets\Label
sortOrder() humhub\widgets\Label
style() humhub\widgets\BootstrapComponent
success() humhub\widgets\BootstrapComponent
textColor() humhub\widgets\BootstrapComponent
title() Adds an html title attribute humhub\widgets\BootstrapComponent
tooltip() Adds an title + tooltip behaviour class humhub\widgets\BootstrapComponent
visible() humhub\widgets\BootstrapComponent
warning() humhub\widgets\BootstrapComponent
widget() Creates a widget instance and runs it. humhub\components\Widget
withLink() humhub\widgets\Label
xs() humhub\widgets\BootstrapComponent

Events

Hide inherited events

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

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
TYPE_DANGER 'danger' humhub\widgets\BootstrapComponent
TYPE_DEFAULT 'default' humhub\widgets\BootstrapComponent
TYPE_INFO 'info' humhub\widgets\BootstrapComponent
TYPE_NONE 'none' humhub\widgets\BootstrapComponent
TYPE_PRIMARY 'primary' humhub\widgets\BootstrapComponent
TYPE_SUCCESS 'success' humhub\widgets\BootstrapComponent
TYPE_WARNING 'warning' humhub\widgets\BootstrapComponent

Property Details

$_action public property
public $_action null
public $_link null
$_sortOrder public property
public $_sortOrder 1000
$encode public property
public $encode true

Method Details

action() public method

Adds a data-action-click handler to the button.

public static action ( $handler, $url null, $target null )
$handler
$url null
$target null
getComponentBaseClass() public method

public string getComponentBaseClass ( )
return string

The bootstrap css base class

getTypedClass() public method

public string getTypedClass ( $type )
$type
return string

The bootstrap css class by $type

getWidgetOptions() public method

public void getWidgetOptions ( )
renderComponent() public method

public string renderComponent ( )
return string

Renders and returns the actual html element by means of the current settings

sort() public static method

public static void sort ( &$labels )
$labels
sortOrder() public method

public void sortOrder ( $sortOrder )
$sortOrder
withLink() public method

public void withLink ( $link )
$link