JSFiddle - React, Tailwind, and code Playground

by ericf

HTML

<script src="http://yui.yahooapis.com/3.5.0pr4/build/yui/yui-min.js"></script>
<div id="test" class="yui3-skin-sam"></div>

JavaScript

YUI().use('panel', function (Y) {

var PanelRef = new Y.Panel({
                    //srcNode : "panelDivName",
                    autoScroll      :   "true",
                    headerContent: "header",
                    bodyContent:"body content",
                    width   : 250,
                    height : 150,
                    centered: true,
                    visible: true,
                    modal: true,
                    zIndex    : 5,
                    render  : '#test',
                    buttons: [
                        {
                            value: "Close",
                            action: function(e) {
                                                                      alert("Close called");
                                e.preventDefault();
                                closeSeatingMap();
                            },
                           section: Y.WidgetStdMod.HEADER
                        }
                    ]
                });

});