Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 4d0fbb2

Browse files
author
Jim Heising
committed
Example plugins now load by default. This should help in plugin development.
1 parent 9ae0dac commit 4d0fbb2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/plugin_example.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// **type_name** (required) : A unique name for this plugin. This name should be as unique as possible to avoid collisions with other plugins, and should follow naming conventions for javascript variable and function declarations.
2121
"type_name" : "my_datasource_plugin",
2222
// **display_name** : The pretty name that will be used for display purposes for this plugin. If the name is not defined, type_name will be used instead.
23-
"display_name": "My Datasource Plugin",
23+
"display_name": "Datasource Plugin Example",
2424
// **description** : A description of the plugin. This description will be displayed when the plugin is selected or within search results (in the future). The description may contain HTML if needed.
2525
"description" : "Some sort of description <strong>with optional html!</strong>",
2626
// **external_scripts** : Any external scripts that should be loaded before the plugin instance is created.
@@ -190,7 +190,7 @@
190190
freeboard.loadWidgetPlugin({
191191
// Same stuff here as with datasource plugin.
192192
"type_name" : "my_widget_plugin",
193-
"display_name": "My Widget Plugin",
193+
"display_name": "Widget Plugin Example",
194194
"description" : "Some sort of description <strong>with optional html!</strong>",
195195
// **external_scripts** : Any external scripts that should be loaded before the plugin instance is created.
196196
"external_scripts": [

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"js/freeboard/freeboard.js",
2222
"js/freeboard/plugins/freeboard.datasources.js",
2323
"js/freeboard/plugins/freeboard.widgets.js",
24+
"examples/plugin_example.js",
2425
function(){
2526
$(function()
2627
{ //DOM Ready

0 commit comments

Comments
 (0)