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
import React, { useRef } from 'react' | |
import PropTypes from 'prop-types' | |
const BI_BASE_URL = 'https://sisense.onuptick.com' | |
const BIDashboard = ({ defaultDashboard, jwt }) => { | |
// This component creates an iframe element setting the initial src to log the user in via a JWT | |
// once that load has finished, the onLoad handler is called (loadDashboard). This then | |
// hands over to the SiSense API to initialise the iframe and complete the embedding. | |
const src = BI_BASE_URL + '/jwt?jwt=' + jwt | |
const iFrameElement = useRef(null) |
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
import React, { useRef } from 'react' | |
import PropTypes from 'prop-types' | |
const BI_BASE_URL = 'https://sisense.onuptick.com' | |
const BIDashboard = ({ defaultDashboard, jwt }) => { | |
// This component creates an iframe element setting the initial src to log the user in via a JWT | |
// once that load has finished, the onLoad handler is called (loadDashboard). This then | |
// hands over to the SiSense API to initialise the iframe and complete the embedding. | |
const src = BI_BASE_URL + '/jwt?jwt=' + jwt | |
const iFrameElement = useRef(null) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* jQuery Plugin: Sticky Tabs | |
* | |
* @author Aidan Lister <aidan@php.net> | |
* @version 1.2.0 | |
*/ | |
(function ( $ ) { | |
$.fn.stickyTabs = function( options ) { | |
var context = this |