PHP Class macgyer\yii2materializecss\widgets\data\DetailView

This data model is represented by $model (inherited from yii\widgets\DetailView). DetailView is best used for displaying a model in a regular format (e.g. each model attribute is displayed as a row in a table.) The model can be either an instance of yii\base\Model or an associative array. DetailView uses the $attributes property (inherited from yii\widgets\DetailView) to determine which model attributes should be displayed and how they should be formatted. A typical usage of DetailView is as follows: php echo DetailView::widget([ 'model' => $model, 'attributes' => [ 'title', // title attribute (in plain text) 'description:html', // description attribute in HTML [ // the owner name of the model 'label' => 'Owner', 'value' => $model->owner->name, ], 'created_at:datetime', // creation date formatted as datetime ], ]);
See also: [yii\widgets\DetailView](http://www.yiiframework.com/doc-2.0/yii-widgets-detailview.html)
Author: Christoph Erdmann ([email protected])
Inheritance: extends yii\widgets\DetailView
Show file Open project: macgyer/yii2-materializecss

Public Properties

Property Type Description
$options the HTML attributes for the container tag of this widget. The "tag" option specifies what container tag should be used. It defaults to "table" if not set.

Property Details

$options public property

the HTML attributes for the container tag of this widget. The "tag" option specifies what container tag should be used. It defaults to "table" if not set.
See also: [yii\helpers\BaseHtml::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
public $options