Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.
/ jquery-splitbutton Public archive

Combine two ui-buttons and one ui-menu.

Notifications You must be signed in to change notification settings

mar10/jquery-splitbutton

Repository files navigation

jquery-splitbutton Build Status

Combine two ui-buttons and one ui-menu.

Status

Pre-Alpha - not fit for production!

Demo

Sample page

Usage

JavsScript:

$("button#split").splitbutton({
    menu: "#splitOptions",
    click: function(event){
        alert("clicked default button");
    },
    select: function(event, ui){
        var menuId = ui.item.find(">a").attr("href");
        alert("select " + menuId);
    }
});

Markup:

<button id="split">Default action</button>

<ul id="splitOptions">
    <li><a href="#action1">Action 1</a>
    <li><a href="#action2">Action 2</a>
    <li><a href="#action3">Action 3</a>
    <li><a href="#action4">Action 4</a>
</ul>

About

Combine two ui-buttons and one ui-menu.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published