Created
January 18, 2018 13:37
-
-
Save vaclavbohac/7bfc17c5ea788e67bb04a6d523ef0e96 to your computer and use it in GitHub Desktop.
Getting visualization object type
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
// Assuming ES6 | |
import * as GoodData from 'goodddata'; | |
const uri = '/gdc/md/la84vcyhrq8jwbu4wpipw66q2sqeb923/obj/349238'; | |
GoodData.xhr.get(uri).then((object) => { | |
console.log(object.visualization.content.type); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment