live-preview data tab floating table editor (#8123)

Adds a table editor based on the color picker floating draggable panel.

This includes behaviours that keep the panel inside the bounds of the live preview window and light / dark mode.
This commit is contained in:
Nigel Breslaw 2025-04-13 14:57:50 +03:00 committed by GitHub
parent 6d01eec4db
commit 2da6bf4add
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 481 additions and 278 deletions

View file

@ -26,6 +26,8 @@ export component StringWidget inherits GridLayout {
private property <bool> is-translated;
private property <string> tr-context-value;
callback update-display-string(value: string);
callback code-action();
callback reset-action();
@ -36,6 +38,7 @@ export component StringWidget inherits GridLayout {
return test-string-binding(Api.string-to-code(text-rle.text, self.is-translated, self.tr-context-value, "", ""), self.is-translated);
}
function ssb() {
update-display-string("\"\{text-rle.text}\"");
set-string-binding(Api.string-to-code(text-rle.text, self.is-translated, self.tr-context-value, "", ""), self.is-translated);
}