Skip to content

Instantly share code, notes, and snippets.

@mindspank
Last active April 18, 2018 19:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindspank/3edca116f29b36404e26511ff7051eaa to your computer and use it in GitHub Desktop.
Save mindspank/3edca116f29b36404e26511ff7051eaa to your computer and use it in GitHub Desktop.
Get object properties in Sense
document.addEventListener('click', function(e) {
(function recurse(scope) {
if(!scope.model) return recurse(scope.$parent);
scope.model.getProperties().then(properties => {
delete properties['qInfo'];
delete properties['qMetaDef'];
window.qliksenseobject = JSON.stringify(properties, null, 4);
console.log( JSON.stringify(properties, null, 4) )
})
})(angular.element(e.target).scope());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment