- A column can be fixed during horizontal scrolling by enablng the frozen property. The location is defined with the alignFrozen that can be left or right. + A column can be fixed during horizontal scrolling by enabling the frozen property. The location is defined with the alignFrozen that can be left or right.
An alternative way to highlight the selected option is displaying a checkmark instead.
++ MeterGroup component uses meter role in addition to the aria-valuemin, aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using aria-labelledby prop. +
+Component does not include any interactive elements.
++ MeterGroup requires a value as the data to display where each item in the collection should be a type of MeterItem. +
+Icons can be displayed next to the labels instead of the default marker.
++ The position of the labels relative to the meters is defined using the labelPosition property. The default orientation of the labels is horizontal, and the vertical alternative is available through the{' '} + labelOrientation option. +
++ Boundaries are configured with the min and max values whose defaults are 0 and 100 respectively. +
+Adding more items to the array displays the meters in a group.
++ MeterGroup requires a value as the data to display where each item in the collection should be a type of MeterItem. +
+List of class names used in the styled mode.
+Name | +Element | +
---|---|
p-metergroup | +Container element. | +
p-metergroup-horizontal | +Container element when orientation mode is horizontal. | +
p-metergroup-vertical | +Container element when orientation mode is vertical. | +
p-metergroup-meter-container | +Container of the meters. | +
p-metergroup-meter | +Content of a meter. | +
p-metergroup-label-list | +Container element of the list of labels. | +
p-metergroup-label-list-start | +Container element when label position is start. | +
p-metergroup-label-list-end | +Container element when label position is end. | +
p-metergroup-label-list-horizontal | +Container element when label orientation is horizontal. | +
p-metergroup-label-list-vertical | +Container element when label orientation is vertical. | +
p-metergroup-label-list-item | +Container element of a list item. | +
p-metergroup-label-list-type | +Container element of a list type. | +
p-metergroup-label | +Content of a label. | +
+ MeterGroup requires a value as the data to display where each item in the collection should be a type of MeterItem. +
+Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!
diff --git a/components/doc/toast/severitydoc.js b/components/doc/toast/severitydoc.js index db8dd67e02..fbabdaebe7 100644 --- a/components/doc/toast/severitydoc.js +++ b/components/doc/toast/severitydoc.js @@ -23,13 +23,23 @@ export function SeverityDoc(props) { toast.current.show({ severity: 'error', summary: 'Error', detail: 'Message Content', life: 3000 }); }; + const showSecondary = () => { + toast.current.show({ severity: 'secondary', summary: 'Secondary', detail: 'Message Content', life: 3000 }); + }; + + const showContrast = () => { + toast.current.show({ severity: 'contrast', summary: 'Contrast', detail: 'Message Content', life: 3000 }); + }; + const code = { basic: `