microsoftTeams.authentication.getAuthToken() => <teams_token>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, Input, Output, EventEmitter, ElementRef, forwardRef, HostListener } from '@angular/core'; | |
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; | |
import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; | |
const styles = ` | |
.ui-select-toggle { | |
position: relative; | |
} | |
/* Fix caret going into new line in Firefox */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visio.run(function(ctx) { | |
var page = ctx.document.getActivePage(); | |
page.load(); | |
return ctx.sync().then(function() { | |
console.log(page.name) | |
}) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diagram.selectionChanged.add(function(shapeId) { | |
if (shapeId) { | |
var shape = diagram.shapes[shapeId]; | |
if (shape) { | |
var ip = shape.Props['IP Address']; | |
if (ip) { | |
var url = 'ssh://' + ip; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3 | |
.selectAll(".vp-table") | |
.style("cursor", "pointer") | |
.on('click', function() { | |
d3.selectAll(".vp-table").selectAll("g").style("fill", null); | |
var id = $(this).attr('id'); | |
var data = diagram.shapes[id]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visio.run(function (ctx) { | |
var activePage = ctx.document.getActivePage(); | |
var shape = activePage.shapes.getItem(0); | |
shape.view.highlight = { color: "#E7E7E7", width: 100 }; | |
return ctx.sync(); | |
}).catch(function(error) { | |
console.log("Error: " + error); | |
if (error instanceof OfficeExtension.Error) { | |
console.log("Debug info: " + JSON.stringify(error.debugInfo)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visio.run(function (ctx) { | |
var document = ctx.document; | |
var pageName = "Page-1"; | |
document.setActivePage(pageName); | |
return ctx.sync(); | |
}).catch(function(error) { | |
console.log("Error: " + error); | |
if (error instanceof OfficeExtension.Error) { | |
console.log("Debug info: " + JSON.stringify(error.debugInfo)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visio.run(function (ctx) { | |
var document = ctx.document; | |
var activePage = document.getActivePage(); | |
activePage.load(); | |
return ctx.sync().then(function () { | |
console.log("pageName: " +activePage.name); | |
}); | |
}).catch(function(error) { | |
console.log("Error: " + error); | |
if (error instanceof OfficeExtension.Error) { |
NewerOlder