1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 01:10:10 +00:00

Update UI Content docs

This commit is contained in:
uramer 2023-11-11 16:00:56 +01:00
parent 416fa331f1
commit 39df270ff2

View File

@ -164,9 +164,9 @@
---
-- Content. An array-like container, which allows to reference elements by their name.
-- Implements [iterables#List](iterables.html#List) of #Layout and [iterables#Map](iterables.html#Map) of #string to #Layout.
-- Implements [iterables#List](iterables.html#List) of #Layout or #Element and [iterables#Map](iterables.html#Map) of #string to #Layout or #Element.
-- @type Content
-- @list <#Layout>
-- @list <#any>
-- @usage
-- local content = ui.content {
-- { name = 'input' },
@ -200,27 +200,27 @@
-- @function [parent=#Content] __index
-- @param self
-- @param #string name
-- @return #Layout
-- @return #any
---
-- Puts the layout at given index by shifting all the elements after it
-- @function [parent=#Content] insert
-- @param self
-- @param #number index
-- @param #Layout layout
-- @param #any layoutOrElement
---
-- Adds the layout at the end of the Content
-- (same as calling insert with `last index + 1`)
-- @function [parent=#Content] add
-- @param self
-- @param #Layout layout
-- @param #any layoutOrElement
---
-- Finds the index of the given layout. If it is not in the container, returns nil
-- @function [parent=#Content] indexOf
-- @param self
-- @param #Layout layout
-- @param #any layoutOrElement
-- @return #number, #nil index
---