mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Update UI Content docs
This commit is contained in:
parent
416fa331f1
commit
39df270ff2
@ -164,9 +164,9 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
-- Content. An array-like container, which allows to reference elements by their name.
|
-- 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
|
-- @type Content
|
||||||
-- @list <#Layout>
|
-- @list <#any>
|
||||||
-- @usage
|
-- @usage
|
||||||
-- local content = ui.content {
|
-- local content = ui.content {
|
||||||
-- { name = 'input' },
|
-- { name = 'input' },
|
||||||
@ -200,27 +200,27 @@
|
|||||||
-- @function [parent=#Content] __index
|
-- @function [parent=#Content] __index
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string name
|
-- @param #string name
|
||||||
-- @return #Layout
|
-- @return #any
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Puts the layout at given index by shifting all the elements after it
|
-- Puts the layout at given index by shifting all the elements after it
|
||||||
-- @function [parent=#Content] insert
|
-- @function [parent=#Content] insert
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #number index
|
-- @param #number index
|
||||||
-- @param #Layout layout
|
-- @param #any layoutOrElement
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Adds the layout at the end of the Content
|
-- Adds the layout at the end of the Content
|
||||||
-- (same as calling insert with `last index + 1`)
|
-- (same as calling insert with `last index + 1`)
|
||||||
-- @function [parent=#Content] add
|
-- @function [parent=#Content] add
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #Layout layout
|
-- @param #any layoutOrElement
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Finds the index of the given layout. If it is not in the container, returns nil
|
-- Finds the index of the given layout. If it is not in the container, returns nil
|
||||||
-- @function [parent=#Content] indexOf
|
-- @function [parent=#Content] indexOf
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #Layout layout
|
-- @param #any layoutOrElement
|
||||||
-- @return #number, #nil index
|
-- @return #number, #nil index
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user