grid-remove ( grid pair -- grid )
Factor documentation > Factor handbook > UI framework > Building user interfaces > Gadget hierarchy and layouts > Grid layouts
Prev:grid-add ( grid child pair -- grid )
Next:grid-child ( grid pair -- gadget )


Vocabulary
ui.gadgets.grids

Inputs and outputs
grida grid
paira pair with shape { col row }


Word description
Removes a child gadget from the specified location.

Errors
Throws an error if the indices are out of bounds.

Side effects
Modifies grid

Definition
USING: kernel ui.gadgets ;

IN: ui.gadgets.grids

: grid-remove ( grid pair -- grid ) [ <gadget> ] dip grid-add ;