有没有办法获取当前使用上电的板的当前 ID?
像这样的东西在我的client.js
var Promise = TrelloPowerUp.Promise;
TrelloPowerUp.initialize({
// Start adding handlers for your capabilities here!
'current-board': function(t, options){
console.log(boardId) // I want to get the board's Id
},
'card-buttons': function(t, options) {
return t.set("member", "shared", "hello", "world")
.then(function(){
return [{
icon: BLACK_ROCKET_ICON,
text: 'Estimate Size',
callback: function(t) {
return t.popup({
title: "Estimation",
url: 'estimate.html',
});
}
}];
})
},
});
当上电初始化时,我想控制台记录board Id
.