diff --git a/api-generator/components/knob.js b/api-generator/components/knob.js index 79ee5ba51..33d027b8f 100644 --- a/api-generator/components/knob.js +++ b/api-generator/components/knob.js @@ -76,6 +76,24 @@ const KnobProps = [ type: "string", default: "{value}", description: "Template string of the value." + }, + { + name: "tabindex", + type: "number", + default: "null", + description: "Index of the element in tabbing order." + }, + { + name: "aria-labelledby", + type: "string", + default: "null", + description: "Establishes relationships between the component and label(s) where its value should be one or more element IDs." + }, + { + name: "aria-label", + type: "string", + default: "null", + description: "Used to define a string that labels the element." } ]; diff --git a/src/components/knob/Knob.d.ts b/src/components/knob/Knob.d.ts index f007368bf..1dda9d920 100644 --- a/src/components/knob/Knob.d.ts +++ b/src/components/knob/Knob.d.ts @@ -59,6 +59,18 @@ export interface KnobProps { * Default value is '{value}'. */ valueTemplate?: string | undefined; + /** + * Index of the element in tabbing order. + */ + tabindex?: number | undefined; + /** + * Establishes relationships between the component and label(s) where its value should be one or more element IDs. + */ + ariaLabelledby?: string | undefined; + /** + * Used to define a string that labels the element. + */ + ariaLabel?: string | undefined; } export interface KnobSlots { diff --git a/src/components/knob/Knob.vue b/src/components/knob/Knob.vue index 56e9980f1..6d1374fd8 100644 --- a/src/components/knob/Knob.vue +++ b/src/components/knob/Knob.vue @@ -1,7 +1,7 @@ @@ -276,6 +355,7 @@ export default { value7: 40, value8: 60, value9: 50, + value10: 0 } } } @@ -324,6 +404,12 @@ export default {
Color
+
+
Reactive Knob
+ +
@@ -341,8 +427,9 @@ export default { const value7 = ref(40); const value8 = ref(60); const value9 = ref(50); + const value10 = ref(0); - return { value1, value2, value3, value4, value5, value6, value7, value8, value9 } + return { value1, value2, value3, value4, value5, value6, value7, value8, value9, value10 } } } <\\/script> @@ -389,6 +476,12 @@ export default {
Color
+
+
Reactive Knob
+ + + +
@@ -406,11 +499,13 @@ export default { const value7 = ref(40); const value8 = ref(60); const value9 = ref(50); + const value10 = ref(0); - return { value1, value2, value3, value4, value5, value6, value7, value8, value9 } + return { value1, value2, value3, value4, value5, value6, value7, value8, value9, value10 } }, components: { - "p-knob": primevue.knob + "p-knob": primevue.knob, + "p-button": primevue.button } };