| 48 | widget.layout()?.setVerticalSpacing(spacing); |
| 49 | }, |
| 50 | set columnProps(props: GridViewColumnProps) { |
| 51 | for (const indexString of Object.keys(props)) { |
| 52 | const index = parseInt(indexString, 10); |
| 53 | const { stretch, minWidth } = props[index]; |
| 54 | |
| 55 | widget.layout()?.setColumnStretch(index, stretch ?? 0); |
| 56 | widget.layout()?.setColumnMinimumWidth(index, minWidth ?? 0); |
| 57 | } |
| 58 | }, |
| 59 | set rowProps(props: GridViewRowProps) { |
| 60 | for (const indexString of Object.keys(props)) { |
| 61 | const index = parseInt(indexString, 10); |