Coder Social home page Coder Social logo

Comments (7)

geojacobm6 avatar geojacobm6 commented on June 15, 2024

And while changing

lkGoogleSettingsProvider.views =  ['ViewId.DOCUMENTS'];

TypeError: google.picker.ViewId.DOCUMENTS is not a constructor

from angular-google-picker.

geojacobm6 avatar geojacobm6 commented on June 15, 2024

Hi,
I fixed my issue by using:

lkGoogleSettingsProvider.views : ['DocsView().setMimeTypes("application/vnd.google-apps.spreadsheet")'];

Thanks

from angular-google-picker.

softmonkeyjapan avatar softmonkeyjapan commented on June 15, 2024

Hi,
I updated your messages using some code highlighting, this is more readable.
Regarding the issue, I've tried to do :

lkGoogleSettingsProvider.views = ['DocsView()'];

and it works on both Chrome | Firefox. A typo somewhere maybe?

Anyway, glad you figured out a way to make it works.

from angular-google-picker.

geojacobm6 avatar geojacobm6 commented on June 15, 2024

Thanks. it works. 👍

from angular-google-picker.

tomrainedotcom avatar tomrainedotcom commented on June 15, 2024

This controller is great, I do have one question about the views though... I'm not sure how you go about making the DocsView only show the ViewId.DOCS_IMAGES. I have tried :

lkGoogleSettingsProvider.views = ['DocsView(ViewId.DOCS_IMAGES)'];

and

lkGoogleSettingsProvider.views = ['DocsView(DOCS_IMAGES)'];

and I get ReferenceError: ViewId is not defined and ReferenceError: DOCS_IMAGES is not defined respectively... any ideas would be a great help.

from angular-google-picker.

softmonkeyjapan avatar softmonkeyjapan commented on June 15, 2024

@tomrainedotcom you need to use the google.picker namespace :

lkGoogleSettingsProvider.views = ['DocsView(google.picker.ViewId.DOCS_IMAGES)'];

from angular-google-picker.

tomrainedotcom avatar tomrainedotcom commented on June 15, 2024

@softmonkeyjapan thanks champ. Absolute legend.

from angular-google-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.