From 79ae1afededb42a1dbab4ba2adcae724c57b0c21 Mon Sep 17 00:00:00 2001 From: NoryiE Date: Sat, 1 Nov 2025 09:48:18 +0000 Subject: [PATCH] deploy: f14928859c21ba0addaceb380cbb5ef9272be1e5 --- docs/references/elements/Container.md | 28 +++++++++++++++++++++++++++ docs/references/elements/List.md | 2 +- docs/references/layoutManager.md | 1 + 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 docs/references/layoutManager.md diff --git a/docs/references/elements/Container.md b/docs/references/elements/Container.md index 62424dc..7ede23a 100644 --- a/docs/references/elements/Container.md +++ b/docs/references/elements/Container.md @@ -34,6 +34,9 @@ Extends: `VisualElement` |[Container:removeChild](#container-removechild-child)|Container|Removes a child element from the container| |[Container:getChild](#container-getchild-path)|child|Finds a child element by its path| |[Container:callChildrenEvent](#container-callchildrenevent-visibleonly-event)|boolean, child|Calls a event on all children| +|[Container:applyLayout](#container-applylayout-layoutpath-options)|Container|Applies a layout to the container| +|[Container:updateLayout](#container-updatelayout)|Container|Updates the layout| +|[Container:clearLayout](#container-clearlayout)|Container|Clears the layout| ## Container:isChildVisible(child) @@ -152,3 +155,28 @@ Calls a event on all children ### Returns * `boolean` `handled` Whether the event was handled * `child` `The` child that handled the event + +## Container:applyLayout(layoutPath, options?) + +Applies a layout from a file to this container + +### Parameters +* `layoutPath` `string` Path to the layout file (e.g. "layouts/grid") +* `options` *(optional)* `table` Optional layout-specific options + +### Returns +* `Container` `self` For method chaining + +## Container:updateLayout() + +Updates the current layout (recalculates positions) + +### Returns +* `Container` `self` For method chaining + +## Container:clearLayout() + +Removes the current layout + +### Returns +* `Container` `self` For method chaining diff --git a/docs/references/elements/List.md b/docs/references/elements/List.md index ab560a7..e91e71a 100644 --- a/docs/references/elements/List.md +++ b/docs/references/elements/List.md @@ -20,7 +20,7 @@ Extends: `Collection` |Event|Parameters|Description| |---|---|---| -|onSelect|`index number, item table`|Fired when an item is selected| +|onSelect|`List self, index number, item table`|Fired when an item is selected| ## Functions diff --git a/docs/references/layoutManager.md b/docs/references/layoutManager.md new file mode 100644 index 0000000..84c33e9 --- /dev/null +++ b/docs/references/layoutManager.md @@ -0,0 +1 @@ +!! EMPTY MARKDOWN GENERATED !!