(props: GridViewRowProps)
| 57 | } |
| 58 | }, |
| 59 | set rowProps(props: GridViewRowProps) { |
| 60 | for (const indexString of Object.keys(props)) { |
| 61 | const index = parseInt(indexString, 10); |
| 62 | const { stretch, minHeight } = props[index]; |
| 63 | |
| 64 | widget.layout()?.setRowStretch(index, stretch ?? 0); |
| 65 | widget.layout()?.setRowMinimumHeight(index, minHeight ?? 0); |
| 66 | } |
| 67 | }, |
| 68 | }; |
| 69 | Object.assign(setter, newProps); |
| 70 | setViewProps(widget, newProps, oldProps); |