{"name":"Tabs","key":"tabs","version":"1.0.5","instructions":"Tabs separate content by heading and are an efficient way to organize data and avoid lots of scrolling. Add tabs, and between the Poodll tab tags nest as many Poodll tabitems as you need.","showatto":"1","showplayers":"0","requirecss":"//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css","requirejs":"/filter/poodll/fakejqueryui/tabs.js","shim":"","defaults":"","amd":"1","body":"<div id=\"@@AUTOID@@\">\n<div class=\"filter_generico_tabs_container\">\n<ul class=\"filter_generico_tabs\"></ul>","bodyend":"</div>\n</div>","script":"var theul = $(\"#\" + @@AUTOID@@ + \" ul.filter_generico_tabs\");\n//because users may copy/paste/massage the tab items, we get html junk\n//so move any span nested tab items to directly under tabs\n$(\".filter_generico_tabitem\", $(\"#\" + @@AUTOID@@)).each(function () {\n    $(this).unwrap('span');\n});\n\n//create li items for each tab item, ignore the (important) ul element and remove html junk\n$(\"#\" + @@AUTOID@@ + \" .filter_generico_tabs_container\").children().each(function () {\n    if($(this).is(\".filter_generico_tabitem\")){\n       const title = $(this).children(`#title_${this.id}`);\n       theul.append(\n        $('<li>').append(\n            $(`<a href=\"#${this.id}\">`).append(\n                title\n            )\n        )\n    );\n //$(this).appendTo('#' + @@AUTOID@@); \n  //end of if is tabitem\n}else if(!$(this).is('ul.filter_generico_tabs')){\n   this.remove();\n}\n});\n\n//finally create the tabs\n$( \"#\" + @@AUTOID@@ + \" .filter_generico_tabs_container\").tabs();","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}