Hi,
I've been tasked with quickly creating a view that looks like this:

I've tried a couple of options using a demo.html file that does the onReady function etc. I don't seem to be able to get the buttons to show at all.
I'm using a simple approach in the onReady function as follows:
csui.onReady( function() {
// Create the server connector for the widgets.
var connector = new csui.util.Connector( {
connection: {
url: "http://localhost/otcs/llisapi.dll/api/v1",
supportPath: "/img",
credentials: {
username: "Admin",
password: "livelink",
domain: "" // optional
}
}
} ),
// Create the container browsing widget.
browser = new csui.widget.FolderBrowserWidget( {
connector: connector,
placeholder: "#folderBrowser"
} );
// Display the container browsing widget.
browser.show();
});
Addendum: I tried the approach that listed on the KC as follows but this doesn't seem to work and produces script errors if I try to include model/containernode)
csui.onReady( function() {
// connection
var connector = new csui.util.Connector( {
connection: {
url: "http://localhost/otcs/llisapi.dll/api/v1",
supportPath: "/img",
credentials: {
username: "Admin",
password: "livelink",
domain: "" // optional
}
}
} );
// container
var container = new csui.model.ContainerNodeModel(
{ id: 2000 }, { connector: connector } );
// populate container nodes with actions on reset
var actionsHelper = new csui.util.ContainerActionsHelper( container );
// menu
var menu = new csui.widget.ContextMenuWidget();
// position
position = { my: 'left top' };
// node and actions
var node = container.children[0];
var actions = node.actions;
// show
menu.showMenuAt( actions, position);
});
I'm wondering if I am not including a particular reference somewhere, but I'm afraid I am stuck at present, so any help is gratefully received.
Grateful for your help in advance,
Anthony