mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 15:47:26 +00:00
Fix preview of the standard table view in C++ docs
Shrink the table view so that it is actually visible.
This commit is contained in:
parent
515f069317
commit
d0624e374b
1 changed files with 8 additions and 10 deletions
|
@ -380,26 +380,24 @@ Same as ListView, and in addition:
|
|||
```slint
|
||||
import { StandardTableView } from "std-widgets.slint";
|
||||
export component Example inherits Window {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
width: 230px;
|
||||
height: 200px;
|
||||
StandardTableView {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
columns: [
|
||||
width: 230px;
|
||||
height: 200px;
|
||||
columns: [
|
||||
{ title: "Header 1" },
|
||||
{ title: "Header 2" },
|
||||
{ title: "Header 3" },
|
||||
{ title: "Header 4" },
|
||||
];
|
||||
rows: [
|
||||
[
|
||||
{ text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" }, { text: "Item 4" }
|
||||
{ text: "Item 1" }, { text: "Item 2" },
|
||||
],
|
||||
[
|
||||
{ text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" }, { text: "Item 4" }
|
||||
{ text: "Item 1" }, { text: "Item 2" },
|
||||
],
|
||||
[
|
||||
{ text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" }, { text: "Item 4" }
|
||||
{ text: "Item 1" }, { text: "Item 2" },
|
||||
]
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue