Class lispa\amos\core\forms\CloseSaveButtonWidget
Inheritance | lispa\amos\core\forms\CloseSaveButtonWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class CloseSaveButtonWidget Renders the close and submit buttons also according to the permissions that the user has.
Public Properties
Public Methods
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_RUN | yii\base\WidgetEvent | An event raised right after executing a widget. (available since version 2.0.11) | yii\base\Widget |
EVENT_BEFORE_RUN | yii\base\WidgetEvent | An event raised right before executing a widget. (available since version 2.0.11) | yii\base\Widget |
EVENT_INIT | yii\base\Event | An event that is triggered when the widget is initialized via init(). (available since version 2.0.11) | yii\base\Widget |
Property Details
Method Details
public mixed getCloseButtonLabel ( ) |
public string getLayout ( ) |
public yii\db\ActiveRecord getModel ( ) |
public void getSaveLabel ( ) |
public mixed getUrlClose ( ) |
See also [[\kartik\base\Widget::init();]] Set of the permissionSave.
public void init ( ) |
public void initVariablesI18n ( ) |
public boolean isButtonCloseVisibility ( ) |
public void renderButtonClose ( ) |
public void renderButtonSubmit ( ) |
Renders a section of the specified name.
If the named section is not supported, false will be returned.
public string|boolean renderSection ( $name ) | ||
$name | string | The section name, e.g., |
return | string|boolean | The rendering result of the section, or false if the named section is not supported. |
---|
public void run ( ) |
public void setButtonCloseVisibility ( $buttonCloseVisibility ) | ||
$buttonCloseVisibility | boolean |
public void setCloseButtonLabel ( $closeButtonLabel ) | ||
$closeButtonLabel | mixed |
public void setModel ( $model ) | ||
$model | yii\db\ActiveRecord |
public void setSaveLabel ( $label ) | ||
$label |
public void setUrlClose ( $urlClose ) | ||
$urlClose | mixed |