Merge pull request #392 from blefevre/master

Add Flex.Clear() method to remove all items in flexbox
pull/395/head
rivo 4 years ago committed by GitHub
commit e8d1520774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,6 +101,12 @@ func (f *Flex) RemoveItem(p Primitive) *Flex {
return f
}
// Clear removes all items from the container.
func (f *Flex) Clear() *Flex {
f.items = nil
return f
}
// ResizeItem sets a new size for the item(s) with the given primitive. If there
// are multiple Flex items with the same primitive, they will all receive the
// same size. For details regarding the size parameters, see AddItem().

Loading…
Cancel
Save