I am adding a Shape via a drag and drop function. I am looking to also add a default dataItem to the options of this Shape.
item, pos, transformed;
item = e.draggable.hint.data(
pos = e.draggable.hintOffset;
transformed = diagram.documentToModel(pos);
item.x = transformed.x;
item.y = transformed.y;
//Want to add default dataItem or find a better place to add.
Here is what my current dataItem look like from other shapes added by Read method. Attached Item.
I want to be able to add this data item like the diagram would normally do but through a drag and drop action. So it can be saved back to the database.