Class lispa\amos\core\forms\editors\m2mWidget\M2MWidget
Inheritance | lispa\amos\core\forms\editors\m2mWidget\M2MWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class M2MWidget
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
throwErrorMessage() | lispa\amos\core\forms\editors\m2mWidget\M2MWidget |
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
This is the template used for rendere action buttons. Here is an example: '{relationAttributeManage} {deleteRelation}'. The default is '{deleteRelation}' to view only delete button.
The url of additional association page
- option for data provider list view
The url of association page
Method Details
public static void additionalAssociateButtonId ( ) |
public static void associaButtonId ( ) |
public static void creaButtonId ( ) |
public static void gestisciAttributiButtonId ( ) |
public array|null getConfirm ( ) |
public void init ( ) | ||
throws | yii\base\Exception |
---|
This method return the default cancel button
public static string makeCancelButton ( $moduleClassName, $targetUrlController, $model, $isModal = false ) | ||
$moduleClassName | string | |
$targetUrlController | string | |
$model | lispa\amos\core\record\Record | |
$isModal | boolean|false |
This method return the default save button
public static string makeSaveButton ( $isModal = false, $url = null ) | ||
$isModal | boolean|false | |
$url |
Renders the toolbar
public void renderFooterMittente ( ) |
Renders the toolbar
public void renderFooterTarget ( ) |
Renders the input hidden section
public void renderHiddenInputTarget ( ) |
Renders the data models for the grid view.
public void renderItemsMittente ( ) |
Renders the data models for the grid view.
public void renderItemsTarget ( ) |
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. |
---|
Renders the toolbar
public void renderToolbarMittente ( ) |
Renders the toolbar
public void renderToolbarMittenteMini ( ) |
Renders the toolbar
public void renderToolbarTarget ( ) |
public void run ( ) |
protected void throwErrorMessage ( $field ) | ||
$field |