Getting disabled and nonEditable props value

Hi, i want to ask something

in what condition disabled and nonEditable props value changed ?

i trying to debug it but i always get

disabled: true and nonEditable: false value, at first i thought it was coming from readonly setting for the field but when i change it the value of disabled and nonEditable still same.

so where those props value coming from ? can someone help me, i’m builidng my own interface extension right now.

thanks

Hey @virgo-fondasys :waving_hand: Thank you, that’s a great question!

Please take a look at the props description in the docs: https://directus.io/docs/guides/extensions/app-extensions/interfaces#props

The nonEditable prop is set to true when used in the comparison modal (used when promoting a version or when opening a revision) or in shared items. nonEditable means disabled, but not grayed out, with no action buttons and the value must be visible/accessible. Think of it as read-only.

When developing an interface extension, I recommend testing it both when it is disabled and inside the comparison modal, where it will render non-editable.