From 61af88db9eb33d66c425803279ebd9de8d0f7a8d Mon Sep 17 00:00:00 2001 From: djpbessems Date: Tue, 25 Jan 2022 09:09:46 +0100 Subject: [PATCH] Retry autoheight; Set state with request data --- Lowdefy/stage.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Lowdefy/stage.yaml b/Lowdefy/stage.yaml index 873622f..ef6a8c8 100644 --- a/Lowdefy/stage.yaml +++ b/Lowdefy/stage.yaml @@ -11,10 +11,15 @@ requests: url: / events: - onEnter: + onInit: - id: fetch_get_data type: Request params: get_data + - id: set_results + type: setState + params: + components: + _request: get_data layout: contentJustify: center @@ -36,6 +41,8 @@ areas: content: Stage - id: component_table type: AgGridAlpine + layout: + height: 500 properties: rowData: - component: VI_IT_VIRTUALIZATION @@ -54,8 +61,8 @@ areas: sortable: false resizable: false filter: false + autoHeight: true rowSelection: multiple - # setDomLayout: autoHeight columnDefs: - headerName: Component name field: component @@ -74,11 +81,10 @@ areas: properties: content: _string.concat: - - '```yaml' - - _yaml.stringify: - - _log: - _request: get_data.hello - - '```' + - | + ```yaml + {{ components.hello }} + ``` - id: bottomrow type: Box layout: