Generate javascript components
In this section we will learn how to generate the two different javascript components (component custom field and component custom widget).
Component custom widget¶
Usage¶
codoo js widget [OPTIONS]
Available options¶
Option | Type | Default | Description |
---|---|---|---|
-n, --name | TEXT | TThe name of the wizard, (e.g: Awesome js widget) | |
-a, --addons | TEXT | The name of the addon, (e.g: codoo_demo) | |
--yes | Boolean | To confirm the generation |
Note
All the options are mandatory.
Examples¶
codoo js widget \
-n "Awesome js widget" \
-a codoo_demo \
--yes
Component custom field¶
Usage¶
codoo js field [OPTIONS]
Available options¶
Option | Type | Default | Description |
---|---|---|---|
-n, --name | TEXT | TThe name of the wizard, (e.g: Awesome js field) | |
-a, --addons | TEXT | The name of the addon, (e.g: codoo_demo) | |
--yes | Boolean | To confirm the generation |
Note
All the options are mandatory.
Examples¶
codoo js field \
-n "Awesome js field" \
-a codoo_demo \
--yes
We know now how to generate the javascript components, so it's time to check the quality of our python code by following the next section.