Skip to content

Components

With codoo you can generate two types of components, custom fields and widgets.

1. Generate field

codoo components generate:field
python3 -m components generate:field

This command will ask questions about your new component.

Note: All questions are mandatory.

Question Description
Field name The name for your Field component
Destination addons The name of the addon you created. Click here to create new Addon if you haven't created one yet

A confirmation will apear choose y to continue or n to abort.

1. Generate widget

codoo components generate:field
python3 -m components generate:widget

This command will ask questions about your new component.

Note: All questions are mandatory.

Question Description
Widget name The name for your Widget component
Destination addons The name of the addon you created. Click here to create new Addon if you haven't created one yet

A confirmation will apear choose y to continue or n to abort.

Back to top