Class humhub\widgets\Modal

Inheritancehumhub\widgets\Modal » humhub\widgets\JsWidget » humhub\components\Widget » yii\base\Widget
Subclasseshumhub\widgets\GlobalModal, humhub\widgets\ModalDialog

AjaxButton is an replacement for Yii1 CHtml::AjaxButton

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getAttributes() humhub\widgets\Modal
getData() humhub\widgets\Modal
getId() Returns the html id of this widget, if no id is set this function will generate an id if $autoGenerate is set to true (default). humhub\widgets\JsWidget
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
process() Process is a wrapper for the run method humhub\components\Widget
run() humhub\widgets\Modal
setDefaultOptions() Sets some default data options required by all widgets as the widget implementation and the widget events and initialization trigger. humhub\widgets\JsWidget
widget() Creates a widget instance and runs it. humhub\components\Widget

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getOptions() Assembles all widget attributes and data settings of this widget. humhub\widgets\JsWidget

Events

Hide inherited events

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

Property Details

$animation public property
public string $animation null
$backdrop public property
public boolean $backdrop true
$body public property
public string $body null
$centerText public property
public boolean $centerText false
$closable public property
public boolean $closable true
$footer public property
public string $footer null
$header public property
public string $header null
$initialLoader public property
public boolean $initialLoader null
$jsWidget public property
public string $jsWidget 'ui.modal.Modal'
$keyboard public property
public boolean $keyboard true
$show public property
public boolean $show false
$showClose public property
public boolean $showClose null
$size public property
public string $size null

Method Details

getAttributes() public method

public void getAttributes ( )
getData() public method

public void getData ( )
run() public method

public void run ( )