New Tree

by obobruyko

HTML

<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/theme.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/containers.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/lists.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/controls.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/buttons.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/pageSpecific.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/dashboard/designer.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/jrs-bugfix-6.1.0/themes/default/menu.css">
<script src="http://localhost:8080/jrs-bugfix-6.1.0/scripts/bower_components/requirejs/require.js"></script>
<script type='text/javascript' src="http://localhost:8080/jrs-bugfix-6.1.0/scripts/require.config.js"></script>
<script>
    var __jrsConfigs__ = {
        contextPath: "http://localhost:8080/jrs-bugfix-6.1.0",
        userLocale: "en",
        isXdm: true
    };

    require.config({
        baseUrl: __jrsConfigs__.contextPath + "/scripts",
    });
</script>
<div class="dashboardDesigner "></div>

JavaScript

require([
    "dashboard/view/designer/SidebarView",
    'dashboard/model/DashboardModel'

], function (SidebarView, DashboardModel) {

    var model = new DashboardModel({}, {
        contextPath: "/jrs-bugfix-6.1.0"
    }),
        sidebar = new SidebarView({
            model: model
        });

    $(".dashboardDesigner").html(sidebar.render().$el);
});