Class humhub\widgets\ModalButton

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

Helper class for creating buttons.

Button::primary()->

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
cancel() humhub\widgets\ModalButton
close() humhub\widgets\ModalButton
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\BootstrapComponent
getHref() humhub\widgets\Button
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
getTypedClass() humhub\widgets\BootstrapComponent
getWidgetOptions() humhub\widgets\BootstrapComponent
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
load() humhub\widgets\ModalButton
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\ModalButton
primary() humhub\widgets\BootstrapComponent
process() Process is a wrapper for the run method humhub\components\Widget
renderComponent() humhub\widgets\BootstrapComponent
right() humhub\widgets\BootstrapComponent
run() humhub\widgets\BootstrapComponent
save() humhub\widgets\Button
setText() humhub\widgets\BootstrapComponent
setType() humhub\widgets\BootstrapComponent
show() humhub\widgets\ModalButton
sm() humhub\widgets\BootstrapComponent
style() humhub\widgets\BootstrapComponent
submit() humhub\widgets\Button
submitModal() humhub\widgets\ModalButton
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
userPickerSelfSelect() humhub\widgets\Button
visible() humhub\widgets\BootstrapComponent
warning() humhub\widgets\BootstrapComponent
widget() Creates a widget instance and runs it. humhub\components\Widget
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

Method Details

cancel() public static method

public static $this cancel ( $text null )
$text null
close() public method

public $this close ( )
load() public method

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

public void post ( $url )
$url
show() public method

public void show ( $target )
$target
submitModal() public static method

public static humhub\widgets\Button submitModal ( $url null, $text null )
$url null
$text null