Questa pagina è generata dai pacchetti Magma, documentati solo in inglese.
<!-- INCORRECT - a local toggle for one widget: it still changes the whole document --><div class="settings-widget"> <mds-pref-consumption></mds-pref-consumption></div>
<!-- CORRECT - in the preferences panel, where a document-wide choice is meant --><mds-pref> <mds-pref-consumption></mds-pref-consumption></mds-pref><!-- INCORRECT --><mds-pref-consumption mode="auto"></mds-pref-consumption><mds-pref-consumption mode="none"></mds-pref-consumption>
<!-- CORRECT --><mds-pref-consumption mode="low"></mds-pref-consumption><mds-pref-consumption mode="medium"></mds-pref-consumption><mds-pref-consumption mode="high"></mds-pref-consumption><!-- INCORRECT --><mds-pref-consumption mode="false"></mds-pref-consumption><mds-pref-consumption mode=""></mds-pref-consumption>
<!-- CORRECT - omit the attribute to restore the persisted value or fall back to "high" --><mds-pref-consumption></mds-pref-consumption><!-- INCORRECT --><mds-pref-consumption id="pref"></mds-pref-consumption><script> document.querySelector('#pref').addEventListener('change', handler);</script>
<!-- CORRECT --><mds-pref-consumption id="pref"></mds-pref-consumption><script> document.querySelector('#pref').addEventListener('mdsPrefChange', handler);</script><!-- INCORRECT --><mds-pref-consumption style="width: 300px;"></mds-pref-consumption>
<!-- CORRECT --><mds-pref-consumption size="sm"></mds-pref-consumption>