Public
Edited
Jan 17, 2024
3 stars
Also listed in…
Observable Tools
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function htmlPrinter(elem, { label = "Print", pageTitle, styles } = {}) {
const clickHandler = function () {
PHE.printElement(elem, { printMode: "popup", pageTitle, styles });
};

const button = Inputs.button(label, {
value: null,
reduce: clickHandler
});
return button;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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