This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function observeElement(element) { | |
const config = { attributes: true, childList: true, subtree: true }; | |
const callback = function(mutationsList, observer) { | |
for(let mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const additions = mutation.addedNodes; | |
const removals = mutation.removedNodes; | |
if (removals.length) { | |
console.log('Child nodes were removed:', ...removals); | |
} |
Quick test: resize your browser or application window between a rough estimate of portrait and landscape aspect ratios, and verify that everything looks OK and works correctly in both.
Full test: open the website or app in a tablet, and rotate the tablet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, Event, EventEmitter, Prop, State } from '@stencil/core'; | |
import { getActionFromKey, getUpdatedIndex, MenuActions, uniqueId } from '../../shared/utils'; | |
interface SelectOption { | |
name: string; | |
value: string; | |
} | |
@Component({ | |
tag: 'combo-readonly', |
NewerOlder