Class lispa\amos\core\forms\ItemAndCardHeaderWidget
Inheritance | lispa\amos\core\forms\ItemAndCardHeaderWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class ItemAndCardHeaderWidget
Widget to display the header in list view, icon view, item view and card view. The interaction menu has three default buttons: favourite, signal and share. If you want to enable only a certain group of buttons you must set interactionMenuButtons array with only the enabled buttons. If you want to disable only a certain group of buttons you must set interactionMenuButtonsHide array with only the disabled buttons.
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
findNode() | lispa\amos\core\forms\ItemAndCardHeaderWidget |
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 array getInteractionMenuButtons ( )
public void setInteractionMenuButtons ( $interactionMenuButtons )
public void setInteractionMenuButtons ( $interactionMenuButtons )
public array getInteractionMenuButtonsHide ( )
public void setInteractionMenuButtonsHide ( $interactionMenuButtonsHide )
public void setInteractionMenuButtonsHide ( $interactionMenuButtonsHide )
Widget view
public string getPublicationDateField ( )
public void setPublicationDateField ( $publicationDateField )
public void setPublicationDateField ( $publicationDateField )
public string getPublicationDateNotPresent ( )
public void setPublicationDateNotPresent ( $publicationDateNotPresent )
public void setPublicationDateNotPresent ( $publicationDateNotPresent )
Method Details
protected mixed findNode ( $Target ) | ||
$Target | array | |
throws | yii\base\InvalidConfigException |
---|
public lispa\amos\admin\models\UserProfile getContentCreator ( ) |
This method returns the link title for the link to the user profile view.
public string getContentCreatorLinkTitle ( ) |
public array getInteractionMenuButtons ( ) |
public array getInteractionMenuButtonsHide ( ) |
public string getLayout ( ) |
public lispa\amos\core\record\Record getModel ( ) |
public string getNodesAsString ( $nodes ) | ||
$nodes | ||
throws | yii\base\InvalidConfigException |
---|
public string getPublicationDateField ( ) |
public string getPublicationDateNotPresent ( ) |
public string getValidatorName ( $validators ) | ||
$validators | ||
throws | yii\base\InvalidConfigException |
---|
Initializes the object.
This method is called at the end of the constructor. The default implementation will trigger an EVENT_INIT event.
public void init ( ) |
public boolean isHideInteractionMenu ( ) |
Executes the widget.
public string run ( ) | ||
return | string | The result of widget execution to be outputted. |
---|
public void setHideInteractionMenu ( $hideInteractionMenu ) | ||
$hideInteractionMenu | boolean |
public void setInteractionMenuButtons ( $interactionMenuButtons ) | ||
$interactionMenuButtons | array |
public void setInteractionMenuButtonsHide ( $interactionMenuButtonsHide ) | ||
$interactionMenuButtonsHide | array |
public void setModel ( $model ) | ||
$model | lispa\amos\core\record\Record |
public void setPublicationDateField ( $publicationDateField ) | ||
$publicationDateField | string |
public void setPublicationDateNotPresent ( $publicationDateNotPresent ) | ||
$publicationDateNotPresent | string |