mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 21:03:00 +00:00
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:
parent
6d01eec4db
commit
2da6bf4add
18 changed files with 481 additions and 278 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue