mirror of
https://github.com/canna71/obsidian-sheets.git
synced 2026-07-22 04:47:23 +00:00
Styling x-spreadsheet
This commit is contained in:
parent
f94a6a045d
commit
ba144ccd7b
4 changed files with 1076 additions and 2 deletions
|
|
@ -56,6 +56,7 @@ esbuild.build({
|
|||
esbuild.build({
|
||||
entryPoints: ['styles.scss'],
|
||||
outfile: "styles.css",
|
||||
// outdir: "/",
|
||||
watch: !prod,
|
||||
plugins: [sassPlugin()]
|
||||
}).catch(() => process.exit(1));
|
||||
|
|
|
|||
1066
main2.css
Normal file
1066
main2.css
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -3,6 +3,7 @@
|
|||
import { MarkdownPostProcessorContext } from "obsidian";
|
||||
import { SheetjsSettings } from "src/Settings";
|
||||
import Spreadsheet from "x-data-spreadsheet";
|
||||
// import "x-data-spreadsheet/dist/xspreadsheet.css";
|
||||
|
||||
export function processCodeBlock(source: string, el: HTMLElement, settings: SheetjsSettings, ctx: MarkdownPostProcessorContext) {
|
||||
|
||||
|
|
@ -18,8 +19,11 @@ export function processCodeBlock(source: string, el: HTMLElement, settings: Shee
|
|||
|
||||
// data validation
|
||||
|
||||
|
||||
const container = el.createDiv()
|
||||
container.style.width="100%";
|
||||
container.style.height="800px";
|
||||
// container.style.position="relative";
|
||||
// const root = createRoot(el);
|
||||
const s = new Spreadsheet(el);
|
||||
const s = new Spreadsheet(container);
|
||||
console.log(`spreadsheet`, s)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
// @import "x-data-spreadsheet/dist/xspreadsheet.css"
|
||||
//
|
||||
@import "main"
|
||||
Loading…
Reference in a new issue