Custom Fields

Components are re-usable so you can have many instances of the same component with different custom fields settings. You can add, remove and change custom fields for each component:

  1. Click on config.json

  2. Click EDIT to edit the fields

If you do not want to commit these changes, you can change the Using Commit: to DEVELOPMENT in the next step so it will use the changes made in the translator without a commit.

  1. Click the ellipses to change the commit. If you do not want to commit the changes you made, you can change the Using Commit: to DEVELOPMENT so it will use the changes made in the translator without a commit.

  2. The custom field you created in the translator, TestField, now shows up.

Some more information:

To get programatic access of the values of the custom fields, there is this api call:

local Fields = component.fields();

This returns a Lua table with the custom fields and their values for the component.

Â