kartik-v/yii2-context-menu 问题修复 & 功能扩展

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

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

kartik-v/yii2-context-menu

最新稳定版本:v1.2.4

Composer 安装命令:

composer require kartik-v/yii2-context-menu

包简介

A context menu extension for Yii framework 2.0

README 文档

README

Krajee Logo
yii2-context-menu Donate

Stable Version Unstable Version License Total Downloads Monthly Downloads Daily Downloads

A context menu extension for Yii framework 2.0 that allows you to add and render a context menu to any element on the page. A context menu is a pop up menu that one initiates on any element by right clicking the mouse in that target element. This widget is a wrapper for the bootstrap-contextmenu plugin which is styled for multiple Bootstrap versions (3.x, 4.x, and 5.x). The widget uses the \yii\bootstrap\Dropdown or \kartik\bs4dropdown\Dropdown widget to generate a dropdown menu.

Demo

You can see detailed documentation on usage of the extension.

Latest Release

Refer the CHANGE LOG for details on changes to various releases.

Installation

The preferred way to install this extension is through composer.

Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

$ php composer.phar require kartik-v/yii2-context-menu "dev-master"

or add

"kartik-v/yii2-context-menu": "dev-master"

to the require section of your composer.json file.

Usage

ContextMenu

use kartik\cmenu\ContextMenu;
ContextMenu::begin([
    'items' => [
        ['label' => 'Action', 'url' => '#'],
        ['label' => 'Another action', 'url' => '#'],
        ['label' => 'Something else here', 'url' => '#'],
        '<li class="divider"></li>',
        ['label' => 'Separated link', 'url' => '#'],
    ],
]); 
// fill in any content within your target container
ContextMenu::end();

License

yii2-context-menu is released under the BSD-3-Clause License. See the bundled LICENSE.md for details.

统计信息

  • 总下载量: 175.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 2
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-05-04