Skip to content

Commit 1b5eab3

Browse files
committed
Update attach() doc
1 parent fa85d97 commit 1b5eab3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/widget.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,12 @@ class Widget {
260260
/**
261261
* Append widget to the DOM.
262262
*
263-
* If an elementId is specified, it will be appended to that element,
264-
* otherwise it will be appended to the document's body.
263+
* If a parentElement is specified, the widget will be appended to that
264+
* element, otherwise it will be appended to the document's body. The parent
265+
* element can be given either as a simple element ID or as a valid HTML
266+
* element.
265267
*
266-
* @param {String,HTMLElement} [element] - Widget's parent
268+
* @param {String,HTMLElement} [parentElement] - Parent element
267269
* @throws {Error} If the element is not found or is of an unknown type.
268270
*/
269271
attach (element) {

0 commit comments

Comments
 (0)