Class lispa\amos\core\forms\CreateNewButtonWidget
Inheritance | lispa\amos\core\forms\CreateNewButtonWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class CreateNewButtonWidget Renders the "create new" button 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
public boolean getCheckPermWithNewMethod ( )
public void setCheckPermWithNewMethod ( $checkPermWithNewMethod )
public void setCheckPermWithNewMethod ( $checkPermWithNewMethod )
Method Details
public string getBtnClasses ( ) |
public boolean getCheckPermWithNewMethod ( ) |
public string getCreateButtonId ( ) |
public string getCreateNewBtnLabel ( ) |
public string getLayout ( ) |
public lispa\amos\core\record\Record getModel ( ) |
public string getOtherBtnClasses ( ) |
public array|null getOtherOptions ( ) |
public mixed getUrlCreateNew ( ) |
public void renderButtonCreate ( ) |
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 setBtnClasses ( $btnClasses ) | ||
$btnClasses | string |
public void setCheckPermWithNewMethod ( $checkPermWithNewMethod ) | ||
$checkPermWithNewMethod | boolean |
public void setCreateButtonId ( $createButtonId ) | ||
$createButtonId | string |
public void setCreateNewBtnLabel ( $createNewBtnLabel ) | ||
$createNewBtnLabel | string |
public void setModel ( $model ) | ||
$model | lispa\amos\core\record\Record |
public void setOtherBtnClasses ( $otherBtnClasses ) | ||
$otherBtnClasses | string |
public void setOtherOptions ( $otherOptions ) | ||
$otherOptions | array |
public void setUrlCreateNew ( $urlCreateNew ) | ||
$urlCreateNew | mixed |