Start Building Your Custom Widgets
Learn how to create custom widgets from scratch using the Widget Builder.
Create a Custom Widget
Set up your custom widget in a few simple steps by following the instructions below creating a simple "Hello World" widget from scratch.
Steps to create a Custom Widget
-
Create a New Widget
Go to
Custom Widgetsusing the right sidebar navigation and click on theNew Custom Widgetbutton. -
Fill out general information
Enter the name of your widget using the title field and select an icon for your widget.
Hello World -
Add a simple layout
Skip all the other options and go directly to the layout editor by selecting the
Layouttab. In the layout editor, add a simple HTML structure with adivelement containing the text "Hello World".<div>Hello World</div> -
Save your widget
Make sure you have enabled the
Available in Staffbasetoggle in theGeneraltab to make your widget available in the Staffbase platform. Then click on theSavebutton to create your very first Custom Widget.infoIf you want to just save your current progress and continue working on it later without making it available in the Staffbase platform, you can disable the
Available in Staffbasetoggle.
Also if you want to test your widget, you do not have to always remove the widget in the Staffbase platform. You can just disable theAvailable in Staffbasetoggle in the Widget Builder and it will not be visible in Staffbase. -
Publish your widget
After saving your widget, go to your
Staffbase Appand add your newly created widget to a page to see it in action.On the
Staffbase App, go to to a page of your choice and click on theEditbutton. In thePage contenteditor, click on the+ / Add Widgetbutton and select your widget from the list of available widgets.That's it! You have successfully created your first custom widget using the Widget Builder.