mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Improve docs
This commit is contained in:
parent
6764d34ce1
commit
fdc72a17f0
5 changed files with 33 additions and 30 deletions
|
|
@ -82,8 +82,8 @@ type Children = {
|
|||
|
||||
local function List(props: Children & Layout)
|
||||
return create "Frame" {
|
||||
props.Layout,
|
||||
props.Children,
|
||||
props.Layout,
|
||||
create "UIListLayout" {}
|
||||
}
|
||||
end
|
||||
|
|
@ -104,17 +104,16 @@ Deeper nested properties are guaranteed to be set after shallower nested
|
|||
properties, this can be used to create overridable default properties.
|
||||
|
||||
```lua
|
||||
local function CenteredList(props: Children & Layout)
|
||||
return List {
|
||||
Layout = {
|
||||
props.Layout,
|
||||
local function List(props: Children & Layout)
|
||||
return create "Frame" {
|
||||
props.Children,
|
||||
|
||||
-- can be overriden by `props.Layout`
|
||||
AnchorPoint = Vector2.new(0.5, 0),
|
||||
Position = UDim2.fromScale(0.5, 0)
|
||||
},
|
||||
props.Layout,
|
||||
-- can be overriden by `props.Layout`
|
||||
AnchorPoint = Vector2.new(0.5, 0),
|
||||
Position = UDim2.fromScale(0.5, 0),
|
||||
|
||||
Children = props.Children
|
||||
create "UIListLayout" {}
|
||||
}
|
||||
end
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue