Note that with The default exportConfig is setup as below: You can choose to display only the download formats you want in the export menu and reorder them as you need. For glyphicons, it defaults to one The grid will automatically reset and style sub groups within parent groups based on this setting. The browser will try to obey all column . config/params.php): If GridView::bsVersion property is set, in addition to Yii::$app->params['bsVersion'], the extension level setting (GridView::bsVersion property) will override the Yii::$app->params['bsVersion']. Default GridView Yii2 - CodeRoad expandIcon: string, icon for the expand indicator. grid footer row. pjax: boolean, whether the grid view will be rendered within a pjax container. Enter this as an associative array of the format $key => $value, where: $key: string, is the tag you wish to replace. This is different than the visible property, in the sense. This is not html encoded. that if this is true the column is rendered, but hidden from display. editableIndex the grid row index to which the editable data belongs. rowSelectedClass: string, the CSS class to apply to the row when rowHighlight is true. tableOptions: array, HTML attributes for the grid table element. Defaults to ['class'=>'dropdown']. Defaults to false. for the community as free open source code, and maintaining this demonstration site. true. To install yiisoft/yii2-bootstrap4, add the repo to the require section of your application's composer.json. This should be similar to the items property as supported by \yii\bootstrap\ButtonDropdown widget. You can also change this behavior to ENABLE toggling by ENTIRE ROW CLICK, by setting enableRowClick to true. panelHeadingTemplate: string, the template for rendering the panel heading block. beforeOptions: array, HTML attributes for the before container. Defaults to false. "*"). The panel will enable configuration of various sections to embed content/buttons, before and after header, and before and after footer. 4 or 4.6.0 or 4.x), To use with bootstrap 5 - you can set this to any string starting with Defaults to GridView::TYPE_DANGER. If set to false, will automatically disable/remove all Bootstrap specific markup from the grid table and filters. allowBatchToggle: boolean, allow batch expansion or batch collapse of all rows by clicking the header indicator. embedded support for Pjax based rendering. This defaults to the following callback function which trims each data element if it is a string: indentSpace: int, pretty print json output and indent by number of spaces specified. 4 or 4.6.0 or 4.x), To use with bootstrap 5 library - you can set GridView::bsVersion property to any string starting with 5 (e.g. GridView . This will be setup as Defaults to ['class'=>'text-left']. The selected rows may be obtained by calling the following JavaScript code: dropdown: boolean, whether the action buttons are to be displayed as a dropdown button menu. panel: array, the panel settings. To add a SerialColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: . Defaults to ltr. float header behavior. kartik-v/yii2-grid - YiiGist content: string, the content to be rendered as a bootstrap button group. itemLabelMany: string, the default label shown for each record in the grid (plural).