diff --git a/README.md b/README.md index 1d892f4..bfee8d2 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ and inits them.getBillboardfunction is used by the home page, the workspace picker, and the fork pulldown to show a consistent name/image/description tag for the workspace throughout the ChiliPeppr ecosystem.addBillboardToWorkspaceMenufunctionfunction ()

Inject the billboard into the Workspace upper right corner pulldown which follows the standard template for workspace pulldown menus.setupResizefunctionfunction ()

Listen to window resize event.onResizefunctionfunction ()

When browser window resizes, forcibly resize the Console windowloadTemplateWidgetfunctionfunction (callback)

Load the Template widget via chilipeppr.load() so folks have a sample -widget they can fork as a starting point for their own.loadSpjsWidgetfunctionfunction (callback)

Load the Serial Port JSON Server widget via chilipeppr.load()loadSenscapeBootloaderWidgetfunctionfunction (callback)

Load Senscape Bootloader Wedget via chilipeppr.load()loadLuaEditorWidgetfunctionfunction (callback)

Load the Lua Editor Widget widget via chilipeppr.load()loadConsoleWidgetfunctionfunction (callback)

Load the Console widget via chilipeppr.load()loadWorkspaceMenufunctionfunction (callback)

Load the workspace menu and show the pubsubviewer and fork links using +widget they can fork as a starting point for their own.loadSpjsWidgetfunctionfunction (callback)

Load the Serial Port JSON Server widget via chilipeppr.load()loadSenscapeBootloaderWidgetfunctionfunction (callback)

Load Senscape Bootloader Wedget via chilipeppr.load()loadDropTestWidgetfunctionfunction (callback)

Load Senscape Bootloader Wedget via chilipeppr.load()loadLuaEditorWidgetfunctionfunction (callback)

Load the Lua Editor Widget widget via chilipeppr.load()loadConsoleWidgetfunctionfunction (callback)

Load the Console widget via chilipeppr.load()loadWorkspaceMenufunctionfunction (callback)

Load the workspace menu and show the pubsubviewer and fork links using our pubsubviewer widget that makes those links for us. diff --git a/auto-generated-workspace.html b/auto-generated-workspace.html index aa78712..a793d13 100644 --- a/auto-generated-workspace.html +++ b/auto-generated-workspace.html @@ -163,6 +163,7 @@ this.loadTemplateWidget(); this.loadSenscapeBootloaderWidget(); this.loadLuaEditorWidget(); + this.loadDropTestWidget(); // Create our workspace upper right corner triangle menu this.loadWorkspaceMenu(); @@ -284,6 +285,27 @@ ); } ); + }, + /** + * Load Senscape Bootloader Wedget via chilipeppr.load() + */ + loadDropTestWidget: function(callback) { + chilipeppr.load( + "#drop-test-instance", + "http://raw.githubusercontent.com/chilipeppr/elem-dragdrop/master/auto-generated-widget.html", + function() { + // Callback after widget loaded into #myDivElemDragdrop + // Now use require.js to get reference to instantiated widget + cprequire( + ["inline:drop-test"], // the id you gave your widget + function(myObjElemDragdrop) { + // Callback that is passed reference to the newly loaded widget + console.log("Element / Drag Drop just got loaded.", myObjElemDragdrop); + myObjElemDragdrop.init(); + } + ); + } +); }, /** * Load the Lua Editor Widget widget via chilipeppr.load() @@ -410,6 +432,10 @@ + +
+

drop test goes here

+

Widget 1 goes here

diff --git a/workspace.html b/workspace.html index f50be20..53ae183 100644 --- a/workspace.html +++ b/workspace.html @@ -70,6 +70,10 @@
+ +
+

drop test goes here

+

Widget 1 goes here

diff --git a/workspace.js b/workspace.js index b043ab5..2144e56 100644 --- a/workspace.js +++ b/workspace.js @@ -71,6 +71,7 @@ cpdefine("inline:com-chilipeppr-workspace-bastianf2", ["chilipeppr_ready"], func this.loadTemplateWidget(); this.loadSenscapeBootloaderWidget(); this.loadLuaEditorWidget(); + this.loadDropTestWidget(); // Create our workspace upper right corner triangle menu this.loadWorkspaceMenu(); @@ -192,6 +193,27 @@ cpdefine("inline:com-chilipeppr-workspace-bastianf2", ["chilipeppr_ready"], func ); } ); + }, + /** + * Load Senscape Bootloader Wedget via chilipeppr.load() + */ + loadDropTestWidget: function(callback) { + chilipeppr.load( + "#drop-test-instance", + "http://raw.githubusercontent.com/chilipeppr/elem-dragdrop/master/auto-generated-widget.html", + function() { + // Callback after widget loaded into #myDivElemDragdrop + // Now use require.js to get reference to instantiated widget + cprequire( + ["inline:drop-test"], // the id you gave your widget + function(myObjElemDragdrop) { + // Callback that is passed reference to the newly loaded widget + console.log("Element / Drag Drop just got loaded.", myObjElemDragdrop); + myObjElemDragdrop.init(); + } + ); + } +); }, /** * Load the Lua Editor Widget widget via chilipeppr.load()