MCPcopy Index your code
hub / github.com/mdn/web-components-examples / connectedCallback

Method connectedCallback

editable-list/main.js:88–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87 // fires after the element has been attached to the DOM
88 connectedCallback() {
89 const removeElementButtons = [...this.shadowRoot.querySelectorAll('.editable-list-remove-item')];
90 const addElementButton = this.shadowRoot.querySelector('.editable-list-add-item');
91
92 this.itemList = this.shadowRoot.querySelector('.item-list');
93
94 this.handleRemoveItemListeners(removeElementButtons);
95 addElementButton.addEventListener('click', this.addListItem, false);
96 }
97
98 // gathering data from element attributes
99 get title() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected