You can use the Sidebar items dialog to prepare the items and subitems of the optional app sidebar. As a note, you can access at runtime by using the app app.sidebar.items property.
There is a Sidebar sample app included with the installation of DecSoft App Builder. Take a look to see the above dialog in action!