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

Method items

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

Source from the content-addressed store, hash-verified

101 }
102
103 get items() {
104 const items = [];
105
106 [...this.attributes].forEach(attr => {
107 if (attr.name.includes('list-item')) {
108 items.push(attr.value);
109 }
110 });
111
112 return items;
113 }
114
115 get addItemText() {
116 return this.getAttribute('add-item-text') || '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected