MCPcopy
hub / github.com/plotly/dash / sheet

Method sheet

components/dash-table/src/core/Stylesheet.ts:39–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 private __stylesheet: HTMLStyleElement | undefined;
38
39 private get sheet() {
40 return (this.__stylesheet =
41 this.__stylesheet ||
42 (() => {
43 const style = document.createElement('style');
44 style.type = 'text/css';
45 style.id = this.name;
46 document.getElementsByTagName('head')[0].appendChild(style);
47
48 return style;
49 })()).sheet as any;
50 }
51}
52
53export default class Stylesheet {

Callers

nothing calls this directly

Calls 1

appendChildMethod · 0.80

Tested by

no test coverage detected