承接 is7/yii2-bootstrap-panel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

is7/yii2-bootstrap-panel

Composer 安装命令:

composer require is7/yii2-bootstrap-panel

包简介

Yii2 Bootstrap Panel

README 文档

README

Yii2 Bootstrap panel widget.

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require is7/yii2-bootstrap-panel "dev-master"

or add

"is7/yii2-bootstrap-panel": "dev-master"

to the require section of your composer.json file then run composer update.

Options

  • title title displayed in the head section of the panel.

  • titleOptions the tag options in terms of name-value pairs.

  • content content displayed in the body section of the panel.

  • footer content displayed in the footer section of the panel.

  • context context of the panel. Defaults to 'default'.

    • info
    • default
    • danger
    • primary
    • success
  • collapsible whether the panel is collapsible. Defaults to false.

  • collapsed whether or not the panel is initially collapsed. Defaults to false.

  • buttons array of buttons, that will be added to the title.

  • minimizable whether to add minimize button, which collapse panel to minimum size. Defaults to false

  • panelOptions the tag options in terms of name-value pairs.

Examples

Basic Example

use is7\bootstrap\Panel;

echo Panel::widget([    
    'title' => 'My Panel',
    'content' => '...',
    'footer' => 'footer content'
]);

Extended example

use is7\bootstrap\Panel;

echo Panel::begin([
    'title'=>'My Panel',
    'collapsible' => true,
    'context' => 'danger',    
    'footer'=>'footer content'
]);

// the body

Panel::end();

Panel with buttons

use is7\bootstrap\Panel;

echo Panel::widget([
    'title'=>'My Panel',
    'content' => '...',
    'context' => 'success',   
    'collapsible' => true,
    'minimizable' => true,
    'buttons' => [                    
        [
            'options' => [
                'class' => 'btn btn-default delete-button',
                'title' => 'Delete Panel'
            ],
            'icon' => 'trash' // Will be converted to the glyphicon-trash icon. HTML tag can be used instead
        ],
    ]
]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固