observedAttributes
React to HTML attribute changes.
static get observedAttributes() { return ['columns']; }
attributeChangedCallback(name, oldValue, newValue) {
if (name === 'columns') this._applyColumns(newValue);
}
Só atributos listados disparam o callback.