Salta ai contenuti
Magma Design System
Input range<mds-input-range>Generato da @maggioli-design-system/magma@2.3.0dist/documentation.json. Incapsulamento: shadow.
Questa pagina è generata dai pacchetti Magma, documentati solo in inglese.
I componenti Magma sono web component: elementi personalizzati che scrivi come i tag HTML, con qualsiasi framework o senza. Le proprietà li configurano, gli eventi dicono cosa è successo, i metodi sono funzioni da chiamare sull'elemento e gli slot accolgono il contenuto che metti al suo interno.
Proprietà
Imposta una proprietà come attributo HTML nel markup, oppure come proprietà da JavaScript. La colonna Attributo dà il nome dell'attributo, un trattino quando coincide con la proprietà; le proprietà senza attributo, come array e funzioni, si impostano solo da JavaScript. Per spegnere un attributo booleano, rimuovilo: non scrivere mai disabled="false".disabled - boolean | undefinedSets if the component is disabled
formatValue((value: number) => string) | undefinedA function to custom how value is represented
max - number100The greatest value in the range of permitted values
min - number0The lowest value in the range of permitted values
name - string | undefinedIs needed to reference the form data after the form is submitted
step - number1The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any, which is described below.
value - numberThe value attribute contains a number which contains a representation of the selected number.
Eventi
mdsInputRangeChangenumberEmits when the input range is changed
Slot
Gli slot accolgono il contenuto che scrivi tra i tag del componente. Lo slot predefinito, quello senza nome, accetta solo testo, salvo dove la sua descrizione dice altrimenti.(predefinito)Add text string, HTML elements or components to this slot.
Nessun nome slot