指定可放置选项卡 [英] Specify droppable Tab

查看:111
本文介绍了指定可放置选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3个标签(用户,9月1日,9月2日),我想将Sep1和Sep2的项目发送给用户,但不是彼此之间。我怎么能这样做?



我正在使用带有jquery标签的连接列表以及其他一些选项,如hide和手风琴,每个项目都有效。



这是我的小提琴与其余的代码



这是我的javascript



I have 3 tabs (User, Sep 1, Sep 2) and i want to send items from Sep1 and Sep2 to User but not between each other. How can i do that?

I'm using connect lists with tabs from jquery plus some other options like hide and accordion on each item, that works.

Here is my fiddle with the rest of the code

Here is my javascript

$(function () {
    $("#sortable1, #sortable2, #sortable3").sortable().disableSelection();
    var $tabs = $("#tabs").tabs();
    var $tab_items = $("ul:first li", $tabs).droppable({
        accept: ".connectedSortable li",
        hoverClass: "ui-state-hover",
        drop: function (event, ui) {
            var $item = $(this);
            var $list = $($item.find("a").attr("href"))
                .find(".connectedSortable3");

            ui.draggable.hide("slow", function () {
                $tabs.tabs("option", "active", $tab_items.index($item));
                $(this).appendTo($list).show("slow");
            });
        }
    });
});





有人可以提供关于我该怎么办的提示吗? thk



Can someone give soe hints on how can i do it? thk

推荐答案

function (){


(< span class =code-string> #sortable1,#sortable2,#sortable3)。sortable()。disableSelection();
var
("#sortable1, #sortable2, #sortable3").sortable().disableSelection(); var


tabs =


这篇关于指定可放置选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆