UI / UILayout
UILayout Class
Container Automatic layout Rules
Table of contents
Properties
autoLayout: boolean |
---|
Auto layout |
autoWrap: boolean |
Is it grid mode |
childCollation: UIChildCollation |
Child object layout Rules |
layout: UILayoutType |
Automatic layout rules |
layoutPacket: UILayoutPacket |
Automatic Layout Node Arrangement Rules |
layoutSpace: number |
Arrangement interval |
padding: Margin |
Four sided margin |
Constructor, pass in each value
Parameters
InLayoutSpace number | Usage: Arrange interval range: No restrictions type: Floating point number |
---|---|
InPadding Margin | Usage: Four sided margin |
InLayout UILayoutType | Usage: automatic layout rules |
InLayoutPacket UILayoutPacket | Usage: Automatic Layout Node Arrangement Rules |
InHugType UIHugContent | Auto layout Type |
InAutoLayout boolean | Usage: Does it automatically layout |
InAutoWrap boolean | Usage: Grid mode or not |
• new UILayout(InLayoutSpace
, InPadding
, InLayout
, InLayoutPacket
, InHugType
, InAutoLayout
, InAutoWrap
, InChildCollation
)
Constructor, pass in each value
Parameters
InLayoutSpace number | Usage: Arrange interval range: No restrictions type: Floating point number |
---|---|
InPadding Margin | Usage: Four sided margin |
InLayout UILayoutType | Usage: automatic layout rules |
InLayoutPacket UILayoutPacket | Usage: Automatic Layout Node Arrangement Rules |
InHugType UIHugContent | Auto layout Type |
InAutoLayout boolean | Usage: Does it automatically layout |
InAutoWrap boolean | Usage: Grid mode or not |
InChildCollation UIChildCollation | Usage: Sub item sorting rules |
Properties
autoLayout
• autoLayout: boolean
Auto layout
autoWrap
• autoWrap: boolean
Is it grid mode
childCollation
• childCollation: UIChildCollation
Child object layout Rules
layout
• layout: UILayoutType
Automatic layout rules
layoutPacket
• layoutPacket: UILayoutPacket
Automatic Layout Node Arrangement Rules
layoutSpace
• layoutSpace: number
Arrangement interval
padding
• padding: Margin
Four sided margin