Custom Utilities
Badaso also supports for customization utilities. The block below is a directory structure for adding a new utilities.
#
Add Utilities- To add a utilities, add it to the
utils
directory.
๐ฆ Your Projectโฃ ๐ resourcesโ โฃ ๐ jsโ โ โฃ ๐ badasoโ โ โ โฃ ๐ utils /** you can add a utility here **/โ โ โ โ โฃ ๐ example-utils.js /** example one **/โ โ โ โ โ ๐ exampleutils.js /** example two **/
- To use the utility that was just added, you can try using syntax below.
caution
The naming utils in Badaso uses the camel case. For example example-utils will become exampleUtils.
- Template
- Script
$exampleUtils.method();$exampleutils.method();
this.$exampleUtils.method();this.$exampleutils.method();