Document.bindings property (apps for Office)
apps for SharePoint
Published: February 26, 2013
Gets an object that provides access to the bindings defined in the document.
var docBindings = Office.context.document.bindings;
A Bindings object.
function displayAllBindings() { Office.context.document.bindings.getAllAsync(function (asyncResult) { var bindingString = ''; for (var i in asyncResult.value) { bindingString += asyncResult.value[i].id + '\n'; } write('Existing bindings: ' + bindingString); }); } // Function that writes to a div with id='message' on the page. function write(message){ document.getElementById('message').innerText += message; }
|
Supported clients |
Excel 2013, Excel Web App, Word 2013 |
|
Library |
Office.js |
|
Namespace |
Office |