Skip to content

(Component):moveBefore

Move the component before one of it's siblings.

Synopsis

component = component:moveBefore( sibling )

Parameters

sibling string or Component
Can be an ID of a sibling, or the sibling component itself.

Returns

component Component
Returns the caller table, so it can be chained

Examples

local playerComponent = mintmousse.get("player.john")
playerComponent:moveBefore("player.steven")

playerComponent:moveBefore(otherPlayerComponent)

See Also