|
@@ -20,7 +20,7 @@ export default class Element extends Node {
|
|
|
*
|
|
*
|
|
|
* @param {String} name Node name.
|
|
* @param {String} name Node name.
|
|
|
* @param {Iterable} attrs Iterable collection of attributes.
|
|
* @param {Iterable} attrs Iterable collection of attributes.
|
|
|
- * @param {treeModel.NodesSet} children List of nodes to be inserted
|
|
|
|
|
|
|
+ * @param {treeModel.NodeSet} children List of nodes to be inserted
|
|
|
* into created element. List of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
|
|
* into created element. List of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
|
|
|
* @constructor
|
|
* @constructor
|
|
|
*/
|
|
*/
|
|
@@ -84,7 +84,7 @@ export default class Element extends Node {
|
|
|
* Note that the list of children can be modified only in elements not yet attached to the document.
|
|
* Note that the list of children can be modified only in elements not yet attached to the document.
|
|
|
* All attached nodes should be modified using the {@link treeModel.operation.InsertOperation}.
|
|
* All attached nodes should be modified using the {@link treeModel.operation.InsertOperation}.
|
|
|
*
|
|
*
|
|
|
- * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
|
|
|
|
|
|
|
+ * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
|
|
|
*/
|
|
*/
|
|
|
appendChildren( nodes ) {
|
|
appendChildren( nodes ) {
|
|
|
this.insertChildren( this.getChildCount(), nodes );
|
|
this.insertChildren( this.getChildCount(), nodes );
|
|
@@ -97,7 +97,7 @@ export default class Element extends Node {
|
|
|
* All attached nodes should be modified using the {@link treeModel.operation.InsertOperation}.
|
|
* All attached nodes should be modified using the {@link treeModel.operation.InsertOperation}.
|
|
|
*
|
|
*
|
|
|
* @param {Number} index Position where nodes should be inserted.
|
|
* @param {Number} index Position where nodes should be inserted.
|
|
|
- * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
|
|
|
|
|
|
|
+ * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
|
|
|
* The list of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
|
|
* The list of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
|
|
|
*/
|
|
*/
|
|
|
insertChildren( index, nodes ) {
|
|
insertChildren( index, nodes ) {
|