Public
Edited
Mar 23, 2023
1 star
Insert cell
Insert cell
button
Insert cell
viewof button = {
const button = html`<button>Click me</button>`;
button.value = 0;
button.classList.add("btn", "btn-primary");
button.onclick = () => {
button.value++;
button.dispatchEvent(new CustomEvent("input", {bubbles: true}));
};
return button;
}
Insert cell
Insert cell
stylesheet = html`<code>CSS</code> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">`
Insert cell
import('https://unpkg.com/popper.js@2.0.0-next.4/lib/index.js?module')
Insert cell
bootstrap = require('bootstrap@5')
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more