sfxcode / vite-primevue-starter

VUE 3 Starter project for using primevue 3 with Vite 3 - Pages, Layouts, Validation
https://vite-primevue-starter.netlify.app/
MIT License
132 stars 31 forks source link

How do you create primevue input fields that are disabled #79

Open mingardia opened 1 year ago

sfxcode commented 11 months ago

Good Morning,

input fields have the disabled property and you can it with a value or a funnction.

 <InputText :disabled="true" />

In primevue-formkit you can use use disabled in your configuration, but you have to use the underscore:

      $formkit: 'primeInputText',
      name: 'iconRight',
      label: 'Icon Right (Disabled)',
      help: 'Right Icon Demo',
      iconRight: 'pi pi-check',
      _disabled: true,
    },

Hope that helps,

Tom

mingardia commented 11 months ago

the issue was when using tag based configuration and the input field is of type primeinputfield.  given the below in the tag i guess it would be :_disabled=trueSent from my iPhonePhone Number: 404-822-0195On Nov 19, 2023, at 2:44 AM, Tom @.***> wrote: Good Morning, input fields have the disabled property and you can it with a value or a funnction.

In primevue-formkit you can use use disabled in your configuration, but you have to use the underscore: $formkit: 'primeInputText', name: 'iconRight', label: 'Icon Right (Disabled)', help: 'Right Icon Demo', iconRight: 'pi pi-check', _disabled: true, },

Hope that helps, Tom

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>