Introduction The Blocs developer API allows 3rd parties to create custom Brics that can be used within the Blocs design environment. The core components of a custom Bric are created using HTML, JS and CSS (you can read more about data and file structure here). There are various API protocols that can be accessed via […]
Category: Developer API
API Calls
Introduction The Blocs developer API provides a set of routines and protocols that can be used to interact with a custom Brics user interface, HTML output and various other aspects of the Blocs design environment. Calls are made via a custom Bric’s Javascript functions, functions can be written in any JS format, jQuery 2, jQuery […]
Custom Bric Structure
Introduction Custom Brics require a specific directory structure in order to work and compile correctly. Please note, the Bric Builder that comes with Blocs 2.5+ has the ability to create new custom Brics from boiler plate examples, using these ensures all relevant files and directories are named correctly and present. Directories Within a custom Bric […]
Compiling Custom Brics
To compile a custom Bric, click the export button found in the top right corner of the Bric Builder. This will then open a sheet and ask you to select a save location for your compiled custom Bric.
Custom Bric Helper Classes
The following helper classes can be used in custom Brics to do miscellaneous tasks, such as hiding content from certain view modes within the Blocs design environment. .display-in-blocs-edit-mode-only – Content with this class applied will show in edit mode only, it will be hidden in all preview modes and when exported this class is replaced […]