Ich möchte einen zusammenfassenden Text zur tabellarischen Zusammenfassung hinzufügen, wie dies erreicht wird?Yii2 GridView add summarytext
haben diese api suchen, aber immer noch nicht unterschreiben können.
MyView:
<div>
<div class="bg-primary text-white">i want to this in summary text</div>
<?= GridView::widget([
'dataProvider' => $provider,
'summaryOptions' => [
'class' => 'bg-primary text-white',
],
'columns' => [
'id',
'address',
'email',
[
'class' => 'yii\grid\ActionColumn',
'header' => 'button',
'headerOptions' => ['style' => 'color:#337ab7'],
'template' => '{update}{delete}',
'buttons' => [
'update' => function ($url,$model) {
$url = Url::to(['controller/update', 'id' => $model->id]);
return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [
'title' => Yii::t('app', 'lead-update'),
]);
},
'delete' => function ($url, $model) {
$url = Url::to(['controller/delete', 'id' => $model->id]);
return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [
'title' => Yii::t('app', 'lead-delete'),
]);
}
],
],
],
]);
?>
</div>
Hope you Kerl kann mir helfen Dank!
ich mag diese Demo Zusammenfassung führen will http://demos.krajee.com/grid-demo – JACKY
scheine die wie Showfooter anders – JACKY