ui/split ================= .. js:class:: Split(instances[, sizes]) :extends: UINodeCollection This class provides the ability to arrange the attached nodes next to each other in the set direction. The size of each can be changed with the draggable bars divideing the nodes. :param Array(UINode) instances: An array of instances to attach. :param Array(Number) sizes: An array of the sizes for the instances to attach. .. js:attribute:: direction :type: String :default: "horizontal" This lower-case string sets the direction along which the nodes are arranged. Valid values are "horizontal" or "vertical". For setting this value it is enough to provide the first letter: "h" or "v". :throws Error: If attempting to set an invalid direction or set the direction while more than 1 :js:class:`UINode` is attached. .. js:function:: attach(instance[, leftOf[, rightOf]]) This function attaches an UINode instance. :param UINode instance: The instance to attach. :param UINode|Number leftOf: See :js:func:`UINodeCollection.attach`. :param UINode|Number rightOf: See :js:func:`UINodeCollection.attach`. .. js:function:: replace(oldInstance, newInstance) Replaces an instance with a new one. :param UINode oldInstance: Instance to replace. :param UINode newInstance: Instance to take the place. .. js:function:: detach(instance) Detaches a currently attached instance. :param UINode instance: Instance to detach. .. js:attribute:: resizeEnabled :type: Boolean :default: true Whether resizing is enabled.