3

I made my own, fairly simple field inside a Module for Craft 3.x.

enter image description here

What settings do i need to define to make it usable inside a table?

enter image description here

2

I think you just can't: allowed field types seem to be hardcoded in craft\fields\Table::getSettingsHtml().

See https://github.com/craftcms/cms/blob/develop/src/fields/Table.php#L215 for details.

You might create a CustomTable field that inherits the Table class and overrides its getSettingsHtml() methods to allow you custom field type, but that seems overkill. It may be easier to just use a matrix field instead of a table field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.