diff --git a/src/views/autocomplete/AutoCompleteDoc.vue b/src/views/autocomplete/AutoCompleteDoc.vue index 99629b438..96b8e3186 100644 --- a/src/views/autocomplete/AutoCompleteDoc.vue +++ b/src/views/autocomplete/AutoCompleteDoc.vue @@ -166,21 +166,6 @@ export default { Callback to invoke to search for suggestions. - - input - value: New value - Callback to invoke on value change. - - - focus - event: Browser event - Callback to invoke when autocomplete gets focus. - - - blur - event: Browser event - Callback to invoke when autocomplete loses focus. - select event.originalEvent: Browser event
diff --git a/src/views/colorpicker/ColorPickerDoc.vue b/src/views/colorpicker/ColorPickerDoc.vue index b853f6691..bfd50821d 100644 --- a/src/views/colorpicker/ColorPickerDoc.vue +++ b/src/views/colorpicker/ColorPickerDoc.vue @@ -8,41 +8,166 @@ import ColorPicker from 'primevue/colorpicker';

Getting Started

-

A model can be bound using the standard v-model directive.

+

A model can be bound using the standard v-model directive. Default color format to use in value binding is "hex" and other possible values are "rgb" and "hsb".

-<InputText type="text" v-model="value" /> +<ColorPicker v-model="color" /> -

Float Label

-

A floating label is implemented by wrapping the input and the label inside a container having .p-float-label style class.

- -<span class="p-float-label"> - <InputText id="username" type="text" v-model="value" /> - <label for="username">Username</label> -</span> + +export default { + data() { + return { + color2: '1976D2' + } + } +} -

Properties

-

InputText passes any valid attribute to the underlying input element.

+

Inline and Overlay

+

ColorPicker is displayed as an overlay with a preview option by default where second alternative is the inline mode.

+ +<ColorPicker v-model="color" :inline="true" /> + -

Styling

-

Following is the list of structural style classes, for theming classes visit theming page.

-
- - - - - - - - - - - - - -
NameElement
p-inputtextInput element
-
+

Properties

+

Any attribute such as style and class are passed to the main container element. Following are the additional properties to configure the component.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
valueanynullValue of the component.
defaultColorstringff0000Initial color to display when value is not defined.
inlinebooleanfalseWhether to display as an overlay or not.
formatstringhexFormat to use in value binding, supported formats are "hex", "rgb" and "hsb".
disabledbooleanfalseWhen present, it specifies that the component should be disabled.
tabindexstringnullIndex of the element in tabbing order.
baseZIndexnumber0Base zIndex value to use in layering.
autoZIndexbooleantrueWhether to automatically manage layering.
+
+ +

Events

+
+ + + + + + + + + + + + + + + +
NameParametersDescription
inputvalue: New valueCallback to invoke on value change.
+
+ +

Styling

+

Following is the list style classed of the component.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameElement
p-colorpickerContainer element.
p-colorpicker-overlayContainer element in overlay mode.
p-colorpicker-preview Preview input in overlay mode.
p-colorpicker-panelPanel element of the colorpicker.
p-colorpicker-contentWrapper that contains color and hue sections.
p-colorpicker-color-selectorColor selector container.
p-colorpicker-colorColor element.
p-colorpicker-color-handleHandle of the color element.
p-colorpicker-hueHue slider.
p-colorpicker-hue-handleHandle of the hue slider.
+

Dependencies

None.

@@ -54,30 +179,22 @@ import ColorPicker from 'primevue/colorpicker'; export default { - data() { - return { - value1: '', - value2: '', - value3: 'PrimeVue' - } - } + data() { + return { + color1: null, + color2: '1976D2' + } + } } diff --git a/src/views/inputmask/InputMaskDoc.vue b/src/views/inputmask/InputMaskDoc.vue index ac6acc682..85ebce31b 100644 --- a/src/views/inputmask/InputMaskDoc.vue +++ b/src/views/inputmask/InputMaskDoc.vue @@ -86,6 +86,9 @@ import InputMask from 'primevue/inputmask'; +

Events

+

Any valid event such as focus, blur and input are passed to the underlying input element.

+

Styling

Following is the list of structural style classes, for theming classes visit theming page.

diff --git a/src/views/inputtext/InputTextDoc.vue b/src/views/inputtext/InputTextDoc.vue index e4be1d6b5..1ae3de385 100644 --- a/src/views/inputtext/InputTextDoc.vue +++ b/src/views/inputtext/InputTextDoc.vue @@ -25,6 +25,9 @@ import InputText from 'primevue/inputtext';

Properties

InputText passes any valid attribute to the underlying input element.

+

Events

+

Any valid event such as focus, blur and input are passed to the underlying input element.

+

Styling

Following is the list of structural style classes, for theming classes visit theming page.

diff --git a/src/views/password/PasswordDoc.vue b/src/views/password/PasswordDoc.vue index ef8ad77c9..d6672cb83 100644 --- a/src/views/password/PasswordDoc.vue +++ b/src/views/password/PasswordDoc.vue @@ -60,6 +60,9 @@ import Password from 'primevue/password';
+

Events

+

Any valid event such as focus, blur and input are passed to the underlying input element.

+

Styling

Following is the list of structural style classes, for theming classes visit theming page.

diff --git a/src/views/spinner/SpinnerDoc.vue b/src/views/spinner/SpinnerDoc.vue index db721e6c0..16ce94445 100644 --- a/src/views/spinner/SpinnerDoc.vue +++ b/src/views/spinner/SpinnerDoc.vue @@ -73,7 +73,7 @@ import Spinner from 'primevue/spinner';

Events

-

Any valid event such as focus, blur and input are passed to the underlying input element. Following are the additional events to configure the component.

+

Any valid event such as focus, blur and input are passed to the underlying input element.

Styling

Following is the list of structural style classes, for theming classes visit theming page.

diff --git a/src/views/textarea/TextareaDoc.vue b/src/views/textarea/TextareaDoc.vue index 331091839..dcf03bf32 100644 --- a/src/views/textarea/TextareaDoc.vue +++ b/src/views/textarea/TextareaDoc.vue @@ -48,25 +48,8 @@ import Textarea from 'primevue/textarea';
-

Events

-
- - - - - - - - - - - - - - - -
NameParametersDescription
inputevent: New valueCallback to invoke on value change.
-
+

Events

+

Any valid event such as focus, blur and input are passed to the underlying input element.

Styling

Following is the list of structural style classes, for theming classes visit theming page.