In some cases the access rules or read-only dataviews make an attribute non-editable. I would like to have that information in the widget. Now I need to copy a snippet to a readonly copy, which is a maintenance problem.
There is a method "isReadonlyAttr" on MxObject. Is it what you are looking for?