# UILayoutComponent.width [← UILayoutComponent](index.md) · [← Master](../../wiki.md) Parça 1/3 · [sonraki](width-2.md) width(int width) UILayoutComponent Per component width (in pixels) that should be sustained within IMappetUIBuilder.grid(int) layout type. Methods inherited from class mchorse.mappet.api.ui.components.UIParentComponent getChildComponents Methods inherited from class mchorse.mappet.api.ui.components.UIComponent anchor, anchor, anchorX, anchorY, apply, applyKeybinds, change, clearChanges, context, context, createContext, enabled, getChanges, getDefaultUpdateDelay, h, handleChanges, id, isDataReserved, keybind, keybind, keybind, keybind, margin, marginBottom, marginLeft, marginRight, marginTop, populateData, resetContext, rh, rh, rw, rw, rwh, rx, rx, rxy, ry, ry, serializeNBT, tooltip, tooltip, updateDelay, visible, w, wh, x, xy, y Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Field Detail scroll public boolean scroll scrollSize public java.lang.Integer scrollSize horizontal public boolean horizontal layoutType public LayoutType layoutType margin public int margin padding public int padding width public java.lang.Integer width items public java.lang.Integer items Constructor Detail UILayoutComponent public UILayoutComponent() Method Detail scroll public UILayoutComponent scroll() Enables scrolling. This option works only with IMappetUIBuilder.column(int) layout component. function main(c) { var ui = mappet.createUI().background(); var column = ui.column(4, 10); column.getCurrent().scroll().rxy(0.5, 0.5).wh(200, 200).anchor(0.5); column.label("Name").h(8); column.textbox().id("name").h(20); column.label("Last name").h(8);