Skip to main content

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.

$exampleUtils.method();$exampleutils.method();