Aam-Digital/ndb-core

Setup Wizard: Add "Description Only" fields to form

Closed this issue ยท 2 comments

The EditDescriptionOnlyComponent is a special "form field" that only displays a label/text and does not have an associated value from the entity record in the form. This is currently not available to add or edit yet in the AdminEntityForm drag&drop form builder and should be added.

  • add another special placeholder "createNewTextPlaceholder", as a copy of createNewFieldPlaceholder, to the AdminEntityFormComponent
  • adjust the drop() method and use a special dropNewText(event) handling (similar to dropNewField)
  • add an openTextConfig method (similar to openFieldConfig), that opens a very simple component in a popup that just allows to edit a multi-line text field. this should take + return an EntitySchemaField object { "id": "<generated>", "label": "<text entered by user>", "editComponent": "EditDescriptionOnly" }
  • add to the event.container.data the full object (not only the field id, because we do save these texts on the form rather than on the entity schema)

๐ŸŽ‰ This issue has been resolved in version 3.35.1-master.3 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

๐ŸŽ‰ This issue has been resolved in version 3.36.0 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€