Appearance
Static methods
Important
Methods that returns existing documents is set to readonly state by default. Make them editable by using toForm()
.
jsx
const document = await window.Cling.document.get('abc123...')
const documentEditable = await document.toForm()
documentEditable.setProperty('data.name', 'My business proposal')
new()
Initialize a new document instance
get()
Retrieve a single document instance matching id
find()
Retrieve multiple document instances matching query
remove()
Remove existing document