BagEditor is a internal-use component used to generate UIX for editing a type of collection called a Bag. Some examples of Bags include the UserBag, SlotBag and WorkerBag.
<languages></languages>
<languages></languages>
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=BagEditorComponent.png
|Image=BagEditorComponent.png
|Name=Bag Editor
|Name=Bag Editor
}}
}}
The '''BagEditor''' component is a internal-use component intended to be used to generate UIX for editing an [[Type:ISyncBag|ISyncBag]]. Some examples of Bags include the UserBag, SlotBag and WorkerBag.
When <code>_targetBag</code> receives a reference to a bag, the BagEditor's slot's children will be populated with items in the bag. Each of these child slots will have the name <code>Element - IDXXXXXX</code>, where <code>IDXXXXX</code> is the [[Type:RefID|Reference ID]] of the element. Each child slot contains a [[Component:BagEditorItem|BagEditorItem]] component with a reference to items in the bag.
This component will misbehave when changing the <code>_targetBag</code> after it already has a reference, as doing so is unintended behavior.
This component is frequently used in conjunction with [[Ref Hacking]].
The BagEditor component is a internal-use component intended to be used to generate UIX for editing an ISyncBag. Some examples of Bags include the UserBag, SlotBag and WorkerBag.
When _targetBag receives a reference to a bag, the BagEditor's slot's children will be populated with items in the bag. Each of these child slots will have the name Element - IDXXXXXX, where IDXXXXX is the Reference ID of the element. Each child slot contains a BagEditorItem component with a reference to items in the bag.
This component will misbehave when changing the _targetBag after it already has a reference, as doing so is unintended behavior.
This component is frequently used in conjunction with Ref Hacking.