Giter VIP home page Giter VIP logo

kendoui.ex's Introduction

Welcome to kendoui.ex

Here, I tried to extend Awesome Kendo UI with missed functionality.

Kendo UI Menu Ex

MenuEx allows you to create:

  • context menus
  • hook to click event of menu node
  • extra data assigned to menu node

Auto data-data insertion

	{
	    text: 'text',
	    data: {id:5}
	}

will be

	<li class='...' data-data='{id:5}'>text</li>

Node click callback

	{
	    text: 'text',
	    data: {id:5},
        click: function (event) {

            alert("this item id: " + this.data('data').id);
        }
	}

All extra options

  • anchor - selector to elements menu will be linked
  • event - jQuery event triggers context menu (default: 'contexmenu')
  • delay - delay before menu will hide (default: 1000)

Example

	$(document).ready(function()  {
		$('#testMenu').kendoMenuEx({
			dataSource: [
			{
				text: 'item #1',
				imageUrl: "../../content/shared/icons/sports/baseball.png",
				data: {id: 5, extra: 'extradata'},
                click: function (event) {

                    alert("this item id: " + this.data('data').id);
                }
			}],
            anchor: '#myDiv, #myTree li',
            delay: 1500,
            event: 'contextmenu'
	    });
    });

Kendo UI Sidebar

Sidebar allows you to create sidebar docked to screen edge. Based on Menu.

Example

    $(function()  {
            var cm = $('#sidebar').kendoSidebar({
            dataSource: [
                {
                    text: 'item #1',
                    imageUrl: "../../content/shared/icons/sports/baseball.png",
                    data: {id: 5, extra: 'extradata'},
                    click: function (e) {

                        alert("this item id: " + this.data('data').id);
                    }
                },
                {text: 'item #2', imageUrl: "../../content/shared/icons/sports/golf.png"},
                {text: 'item #3', imageUrl: "../../content/shared/icons/sports/swimming.png",
                    items: [
                        {text: 'item #31', imageUrl: "../../content/shared/icons/16/video.png"},
                        {text: 'item #32', imageUrl: "../../content/shared/icons/16/photo.png"}
                    ]
                }
            ],
            orientation: 'horizontal',
            position: ['center', 'bottom'] // [[left, center, right], [top, center, bottom]]
        });
    });

License

Copyright (c) 2011-2012, Constantine Zykov

Dual licensed under the MIT license and GPL license.

kendoui.ex's People

Contributors

artem-kovalev avatar jlipford avatar nzy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.