Opening a Link
quip.apps.openLink
Function(url: string) => void
Opens the given URL in a new browser window.
Example
- Typescript
- Javascript
class MyComponent extends React.Component {
handleClick = (e: MouseEvent<HTMLButtonElement>) => {
quip.apps.openLink("https://www.quip.com");
}
render() {
return <button onClick={this.handleClick}>
Open Link
</button>;
}
}
quip.apps.initialize({
initializationCallback: (root, params) => {
ReactDOM.render(<MyComponent />, root);
},
});
class MyComponent extends React.Component {
handleClick = (e) => {
quip.apps.openLink("https://www.quip.com");
}
render() {
return <button onClick={this.handleClick}>
Open Link
</button>;
}
}
quip.apps.initialize({
initializationCallback: (root, params) => {
ReactDOM.render(<MyComponent />, root);
},
});