Rate this page:

show-authorization

Tells Trello what to do when the clicks on the Authorize Account prompt.

Example Code

1
2
3
4
5
6
7
8
9
10
11
12
13
window.TrelloPowerUp.initialize({
  'show-authorization': function(t, options){
    // return what to do when a user clicks the 'Authorize Account' link
    // from the Power-Up gear icon which shows when 'authorization-status'
    // returns { authorized: false }
    // in this case we would open a popup
    return t.popup({
      title: 'My Auth Popup',
      url: './authorize.html',
      height: 140,
    });
  }
});

Rate this page: