Params
attributes
(Object
) – A plain JS object containing key-value pairs for the data to be created. The keys must be valid identifiers.
DataItem
instance. The attributes are provided to the corresponding create
callback (see Scrivito.provideDataClass
).Params
attributes
(Object
) – A plain JS object containing key-value pairs for the data to be created. The keys must be valid identifiers.Returns
promise
(Promise
) – A promise that resolves with a DataItem
for the new data.