Web 应用菜单 nuContextMenu

码农软件 · 软件分类 · jQuery菜单 · 2019-12-21 10:57:28

软件介绍

nuContextMenu 是用在 Web 应用上,对字体有完美支持的内容菜单。它只有 2.2 KB 大小,它将菜单视为主要对象,这就意味着单个菜单可以附着多个元素。

示例代码:

$(function() {
    var context = $('#node').nuContextMenu({

        // Omit items if you are attaching to a single container
        items: '.item',

        callback: function(key, element) {
            alert('Clicked ' + key + ' on ' + $(element).attr('id'));
        },

        // Define menu items here
        // key: {...}
        menu: {

            'archive': {
                title: 'Archive',
                // Font awesome icons here
                icon: 'archive',
            },

            'mark': {
                title: 'Mark as read',
                icon: 'check',
            },

            // If the value is 'separator' then an 
            // <hr> node is added
            'void': 'separator',

            'delete': {
                title: 'Delete',
                icon: 'trash',
            },
        }
    });

    // Disable context menu
    // context.nuContextMenu('disable');

});

本文地址:https://www.codercto.com/soft/d/21624.html

Spring

Spring

Bruce Tate、Justin Gehtland / O'Reilly Media, Inc. / 2005-04-12 / USD 29.95

Since development first began on Spring in 2003, there's been a constant buzz about it in Java development publications and corporate IT departments. The reason is clear: Spring is a lightweight Java......一起来看看 《Spring》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具