You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NOTE** : Views classes have some usefull methods such as `setIncludeFolders` or `setStarred` (or any other methods available). In order to use them, just chain them to the class :
147
+
**NOTE** : Views classes have some useful methods such as `setIncludeFolders` or `setStarred` (or any other methods available). In order to use them, just chain them to the class :
Please refer to [https://developers.google.com/picker/docs/reference](https://developers.google.com/picker/docs/reference) for more informations.
163
163
164
164
165
+
# Callback
166
+
167
+
If you want to do some logic after selecting files from the picker, you can use the `after-select` attribute and pass it a function from the active scope.
168
+
169
+
```js
170
+
angular.module('myApp', ['lk-google-picker'])
171
+
172
+
.controller('ExampleCtrl', ['$scope', function ($scope) {
173
+
$scope.afterSelectCallback=function (files) {
174
+
// Do something
175
+
}
176
+
}]);
177
+
```
178
+
179
+
```html
180
+
<ahref="javascript:;"lk-google-pickerpicker-files="files"after-select="afterSelectCallback(files)">Open my Google Drive</a>
181
+
```
182
+
183
+
165
184
# Example
166
185
167
186
The demo version available at [http://softmonkeyjapan.github.io/angular-google-picker/](http://softmonkeyjapan.github.io/angular-google-picker/) can be found in the `example` folder.
0 commit comments