kak/panel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kak/panel

最新稳定版本:1.0.5

Composer 安装命令:

composer require kak/panel

包简介

Yii2 panel widget

README 文档

README

this extension is for generating html panel via boostrap 3x+ for Yii2 framework

Install

The preferred way to install this extension is through composer.

Either run

php composer.phar require kak/panel "^1.0"

or add

"kak/panel": "^1.0"

to the require section of your composer.json file.

Usage

<?php

use kak\widgets\panel\Panel;
/**
* @var app\models\Post $model   
* @var yii2\web\View $this 
*/

?>
<?php Panel::begin([
    'title' =>  ($model->isNewRecord ? 'Create' : ' Update'), // title panel
    'slimScroll' => false, // enable slim scroll plugin (default false)
    'slimOptions' => [], // slim scroll options for data-attr
    'options' => [
        'class' => Panel::CSS_CLASS_WARNING
    ], // attr tag panel
    'heading' => true,  // show/hide header title (default true)
    'headerColumn' => 'string content', // additional column on the right position for header
    'headerIcon' => 'string classes or html tag content',  
    'headerTag' => 'h4',
    'header' => 'header string',
    'footer' => 'footer string',
    'bodyOptions' => [], // the HTML attributes for the body-panel tag.
    'templateHeader' => '<div class="header--title">{title} {header}</div><div class="header--columns">{columns}</div>',
    
])?>
<!-- content -->
<?php Panel::end()?>

Or

<?= Panel::widget([
    'title' => 'title panel',
    'content' => 'html content'
])?>

统计信息

  • 总下载量: 4.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-01