FAQ: how to work with UNO commands

  1. My command doesn’t get status updates in Collabora Online.
    You need to enable it in the “core” LibreOffice, example: https://gerrit.libreoffice.org/c/core/+/132585

  2. My command needs more params, how to sent them?
    See more advanced example: online/Control.RowHeader.js at 46e6f6b4ba1b4b06661a76e259856d7ae9b9e4c0 · CollaboraOnline/online · GitHub

var command = {
	RowHeight: {
		type: 'unsigned short',
		value: this._map._docLayer.twipsToHMM(Math.max(height, 0))
	},
	Row: {
		type: 'long',
		value: row + 1 // core expects 1-based index.
	}
};
map.sendUnoCommand('.uno:RowHeight', command);```