This is the visual ThyAPI Collection Element. With it, one can hold a collection of any visual Element (that is, any element derivate from thyPanel) and it will perform the thyCollection actions.
name | The element name |
vParent | The parent element (must be derivate from thyPanel) |
This is the visual ThyAPI Collection Element. | |
Populate the thyVisualCollection with the passed arguments. | |
Inserts a visualElement into the collection and add it as child of vParent | |
Removes the element from vParent and from collection | |
Change the position of an element inside the collection and on vParent | |
Exchange the position of 2 elements |
p.populate = function ( data )
Populate the thyVisualCollection with the passed arguments.
data | An array of visual elements |
p.changeElementIndex = function ( info, name_also )
Change the position of an element inside the collection and on vParent
info | Array that may specify elm, name or oldIndex and new index |
name_also | If true, the name of the element will be exchanged with the name of the element in the destination index. |
Populate the thyVisualCollection with the passed arguments.
p.populate = function ( data )
Inserts a visualElement into the collection and add it as child of vParent
p.add = function ( elm, name, index )
Removes the element from vParent and from collection
p.remove = function ( elm, name, index )
Change the position of an element inside the collection and on vParent
p.changeElementIndex = function ( info, name_also )
Exchange the position of 2 elements
p._swapIndex = function ( elm1, index1, elm2, index2 )