Classes (1) | Namespaces (0) |
Properties (2) | Static properties (0) |
Methods (3) | Static methods (0) |
Events (0) |
Properties (2) | Static properties (0) |
Methods (3) | Static methods (0) |
Events (0) |
Modify an array by switching the position of two elements
Switch the positions of nodes in a parent node (note this is specifically designed for table rows). Note this function considers all element nodes under the parent!
Switch the key value pairing of an index array to be value key (i.e. the old value is now the key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].
Modify an array by switching the position of two elements
Name | Type | Attributes | Default | Description | |
---|---|---|---|---|---|
1 | array | aArray Array to consider, will be modified by reference (i.e. no return) | |||
2 | int | iFrom From point | |||
3 | int | iTo Insert point |
void
Switch the positions of nodes in a parent node (note this is specifically designed for table rows). Note this function considers all element nodes under the parent!
Name | Type | Attributes | Default | Description | |
---|---|---|---|---|---|
1 | string | sTag Tag to consider | |||
2 | int | iFrom Element to move | |||
3 | int | Point to element the element to (before this point), can be null for append |
void
Switch the key value pairing of an index array to be value key (i.e. the old value is now the key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].
Name | Type | Attributes | Default | Description | |
---|---|---|---|---|---|
1 | array | aIn Array to switch around |
array