Class Collection
A Collection class (extends Singleton)
Usage:
c = Collection.getInstance!
Methods
collection\newCollection (collName, root, children) | Creates a new collection with an optional root and children{childName: child} |
collection\getCollection (collName) | gets a collection. |
collection\attachControlTo (child, collName) | adds child to a collection. |
collection\removeControlFrom (child, collName) | removes child to a collection. |
collection\forget (collName) | remove a collection. |
Methods
- collection\newCollection (collName, root, children)
-
Creates a new collection with an optional root and children{childName: child}
Parameters:
- collection\getCollection (collName)
-
gets a collection.
Parameters:
- collName string
- collection\attachControlTo (child, collName)
-
adds child to a collection.
Parameters:
- child Control(table)
- collName string
- collection\removeControlFrom (child, collName)
-
removes child to a collection.
Parameters:
- child Control(table)
- collName string
- collection\forget (collName)
-
remove a collection.
Parameters:
- collName string