By default, GridView summary is "Showing 1-10 of 10 Items". I want to change the word "Items" to "Books". How can I do that ?
I try this
$gridview = GridView::widget([
'summary' => 'Showing <b>{begin}-{end}</b> of <b>{totalCount}</b> Books',
'summaryOptions' => ['class' => 'summary'],
'dataProvider' => $dataProvider,
it works. But is there a shorter way just to change the word ? I have to over-write the whole summary.
Second issue I have is ‘summaryOptions’ does not render <div class=‘summary’>…</div> wrap around the ‘summary’ as the default summary.