当前位置: 首页>>代码示例>>PHP>>正文


PHP Icon::Map方法代码示例

本文整理汇总了PHP中kartik\icons\Icon::Map方法的典型用法代码示例。如果您正苦于以下问题:PHP Icon::Map方法的具体用法?PHP Icon::Map怎么用?PHP Icon::Map使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kartik\icons\Icon的用法示例。


在下文中一共展示了Icon::Map方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: function

<?php

use kartik\helpers\Html;
use kartik\grid\GridView;
use kartik\icons\Icon;
use yii\helpers\Url;
use frontend\models\MonitoringKacamata;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\search\MonitoringKacamataSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Monitoring Kacamata';
$this->params['breadcrumbs'][] = $this->title;
Icon::Map($this, Icon::FA);
?>
<div class="monitoring-kacamata-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
//echo $this->render('_search', ['model' => $searchModel]);
$gridColumns = [['class' => 'kartik\\grid\\SerialColumn', 'contentOptions' => ['class' => 'kartik-sheet-style'], 'header' => '#', 'width' => '36px', 'headerOptions' => ['class' => 'kartik-sheet-style']], ['attribute' => 'nikkes', 'width' => '15%'], ['attribute' => 'nikkes0', 'value' => 'nikkes0.nama'], ['attribute' => 'hak_kacamata_id', 'value' => function ($model, $key, $index, $widget) {
    return '<code>' . $model->hakKacamata->hak_kacamata . '</code>';
}, 'filterType' => GridView::FILTER_SELECT2, 'filter' => MonitoringKacamata::getHakKacamataList(), 'filterWidgetOptions' => ['pluginOptions' => ['allowClear' => true]], 'filterInputOptions' => ['placeholder' => 'Hak Kacamata'], 'vAlign' => 'middle', 'format' => 'raw', 'width' => '10%'], ['attribute' => 'tgl_ambil', 'filterType' => GridView::FILTER_DATE, 'filterWidgetOptions' => ['options' => ['placeholder' => 'Enter date ...'], 'type' => \kartik\widgets\DatePicker::TYPE_COMPONENT_APPEND, 'removeButton' => false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']], 'width' => '20%', 'format' => 'date'], ['class' => 'kartik\\grid\\ActionColumn', 'hidden' => true]];
?>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => $gridColumns, 'headerRowOptions' => ['class' => 'active'], 'filterRowOptions' => ['class' => 'active'], 'pjax' => true, 'panel' => ['heading' => '<h3 class="panel-title"><i class="glyphicon glyphicon-th-large"></i> Monitoring Kacamata</h3>', 'type' => GridView::TYPE_PRIMARY], 'toolbar' => [['content' => Html::button(Icon::show('plus'), ['type' => 'button', 'title' => 'Add Monitoring Kacamata', 'class' => 'btn btn-success', 'onClick' => 'location.href=window.location.href + "/create"']) . '' . Html::a(Icon::show('repeat'), ['/monitoringkacamata'], ['data-pjax' => 0, 'class' => 'btn btn-default', 'title' => 'Reset'])]], 'hover' => true, 'condensed' => true, 'striped' => false, 'responsive' => true]);
?>
开发者ID:santhika29,项目名称:y-app,代码行数:31,代码来源:index.php


注:本文中的kartik\icons\Icon::Map方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。