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.
The naming utils in Badaso uses the camel case. For example example-utils will become exampleUtils.
$exampleUtils.method();
$exampleutils.method();
this.$exampleUtils.method();
this.$exampleutils.method();
Edit this page on GitHub Updated at Tue, Jul 6, 2021