diff --git a/api-generator/components/inputnumber.js b/api-generator/components/inputnumber.js
index 5796efe41..9204a3c80 100644
--- a/api-generator/components/inputnumber.js
+++ b/api-generator/components/inputnumber.js
@@ -231,11 +231,23 @@ const InputNumberEvents = [
}
];
+const InputNumberSlots = [
+ {
+ name: 'incrementbuttonicon',
+ description: 'Custom increment button icon template.'
+ },
+ {
+ name: 'decrementbuttonicon',
+ description: 'Custom decrement button icon template.'
+ }
+];
+
module.exports = {
inputnumber: {
name: 'InputNumber',
description: 'InputNumber is an input component to provide numerical input.',
props: InputNumberProps,
- events: InputNumberEvents
+ events: InputNumberEvents,
+ slots: InputNumberSlots
}
};
diff --git a/components/lib/inputnumber/InputNumber.d.ts b/components/lib/inputnumber/InputNumber.d.ts
index 1d6596245..193f838fb 100755
--- a/components/lib/inputnumber/InputNumber.d.ts
+++ b/components/lib/inputnumber/InputNumber.d.ts
@@ -7,7 +7,7 @@
* @module inputnumber
*
*/
-import { ButtonHTMLAttributes, InputHTMLAttributes } from 'vue';
+import { ButtonHTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
/**
@@ -73,12 +73,10 @@ export interface InputNumberProps {
decrementButtonClass?: string | undefined;
/**
* Style class of the increment button.
- * @defaultValue pi pi-angle-up
*/
incrementButtonIcon?: string | undefined;
/**
* Style class of the decrement button.
- * @defaultValue pi pi-angle-down
*/
decrementButtonIcon?: string | undefined;
/**
@@ -203,7 +201,16 @@ export interface InputNumberProps {
/**
* Defines valid slots in InputNumber component.
*/
-export interface InputNumberSlots {}
+export interface InputNumberSlots {
+ /**
+ * Custom increment button icon template.
+ */
+ incrementbuttonicon(): VNode[];
+ /**
+ * Custom decrement button icon template.
+ */
+ decrementbuttonicon(): VNode[];
+}
/**
* Defines valid emits in InputNumber component.
diff --git a/components/lib/inputnumber/InputNumber.vue b/components/lib/inputnumber/InputNumber.vue
index 2750dd3d3..2eb64a37d 100755
--- a/components/lib/inputnumber/InputNumber.vue
+++ b/components/lib/inputnumber/InputNumber.vue
@@ -26,16 +26,34 @@
v-bind="inputProps"
/>
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+