Class humhub\widgets\Link

Inheritancehumhub\widgets\Link » humhub\widgets\Button » humhub\widgets\BootstrapComponent » humhub\components\Widget » yii\base\Widget

Helper class for creating links.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__toString() humhub\widgets\BootstrapComponent
action() Adds a data-action-click handler to the button. humhub\widgets\Button
asColor() humhub\widgets\BootstrapComponent
asLink() humhub\widgets\Button
asString() humhub\widgets\BootstrapComponent
back() humhub\widgets\Button
blank() humhub\widgets\Link
color() humhub\widgets\BootstrapComponent
confirm() Adds a confirmation behaviour to the button. humhub\widgets\Button
cssClass() humhub\widgets\BootstrapComponent
danger() humhub\widgets\BootstrapComponent
defaultType() humhub\widgets\BootstrapComponent
getComponentBaseClass() humhub\widgets\Button
getHref() humhub\widgets\Button
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
getTypedClass() humhub\widgets\Button
getWidgetOptions() humhub\widgets\Button
href() humhub\widgets\Link
icon() humhub\widgets\BootstrapComponent
id() humhub\widgets\BootstrapComponent
info() humhub\widgets\BootstrapComponent
instance() humhub\widgets\BootstrapComponent
isPjaxEnabled() humhub\widgets\Button
left() humhub\widgets\BootstrapComponent
lg() humhub\widgets\BootstrapComponent
link() humhub\widgets\Button
loader() humhub\widgets\Button
none() humhub\widgets\BootstrapComponent
onAction() Adds a data-action-* handler to the button. humhub\widgets\Button
options() humhub\widgets\BootstrapComponent
pjax() If set to false the [data-pjax-prevent] flag is attached to the link. humhub\widgets\Button
post() humhub\widgets\Link
primary() humhub\widgets\BootstrapComponent
process() Process is a wrapper for the run method humhub\components\Widget
renderComponent() humhub\widgets\Button
right() humhub\widgets\BootstrapComponent
run() humhub\widgets\BootstrapComponent
save() humhub\widgets\Button
setText() humhub\widgets\BootstrapComponent
setType() humhub\widgets\BootstrapComponent
sm() humhub\widgets\BootstrapComponent
style() humhub\widgets\BootstrapComponent
submit() humhub\widgets\Button
success() humhub\widgets\BootstrapComponent
target() humhub\widgets\Link
textColor() humhub\widgets\BootstrapComponent
title() Adds an html title attribute humhub\widgets\BootstrapComponent
to() humhub\widgets\Link
tooltip() Adds an title + tooltip behaviour class humhub\widgets\BootstrapComponent
userPickerSelfSelect() humhub\widgets\Button
visible() humhub\widgets\BootstrapComponent
warning() humhub\widgets\BootstrapComponent
widget() Creates a widget instance and runs it. humhub\components\Widget
withAction() humhub\widgets\Link
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

public $_link true

Method Details

blank() public method

public void blank ( )
href() public method

public $this href ( $url '#', $pjax true )
$url string
$pjax boolean
post() public method

public $this post ( $url )
$url
target() public method

public void target ( $target )
$target
to() public static method

public static void to ( $text, $url '#', $pjax true )
$text
$url
$pjax
withAction() public static method

public static void withAction ( $text, $action, $url null, $target null )
$text
$action
$url
$target