Introduction to Pass Through Props Feature of PrimeVue

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 29

  • @Astartes_
    @Astartes_ Рік тому +5

    Great job you're doing with PrimeVue, I use it daily for work and hobby projects!

  • @codedjango
    @codedjango Рік тому +3

    Thank you....this is indeed a very unique concept....so far I havent seen this anywhere else....thank you so much PrimeVue 👍

  • @krycekaiolfi
    @krycekaiolfi Рік тому +2

    Coming from quasar, I can say that this feature is unbelievable useful

    • @cagataycivici
      @cagataycivici  Рік тому +2

      Quasar is also good with a wider scope afaik, PrimeVue focuses on UI components. Always good to have options to choose from. Vue deserves this.

  • @larsm2001
    @larsm2001 2 місяці тому

    Excellent stuff. Any news on PT availability in PrimeNG?

  • @EmirCivici
    @EmirCivici Рік тому +4

    Great video

  • @justinwhite9978
    @justinwhite9978 Рік тому +2

    Love the frequent uploads!

    • @cagataycivici
      @cagataycivici  Рік тому +4

      Thanks, I plan to put up around 3 videos every week from now on.

  • @VincenzoCoppolecchia
    @VincenzoCoppolecchia 6 місяців тому +1

    Hello @cagataycivici, how can I use the property "datepickerMask" of Calendar component to mask my input? Thank you.

  • @NicolasPL_
    @NicolasPL_ 14 днів тому

    And how could I apply a style globally to a directive like v-tooltip since it's not a component per-se?
    Currently I have to add
    v-tooltip="{ value: 'Text', class: 'tooltip' }
    to every single element I want to have a tooltip on.
    Would be great if I only had to do v-tooltip=" 'Text' " each time

  • @CsabaKissColorado
    @CsabaKissColorado Рік тому +1

    Great video! Could you, please, explain the 'slot' property with the pass-through options? For example, I would like to modify the icons for the on and off state of the ToggleButton component.

    • @cagataycivici
      @cagataycivici  Рік тому +1

      Sure thing! Icons are customized with templates/slots. Here is an overview video but I will put up a video on this next week.
      ua-cam.com/video/cQ91ieniOfQ/v-deo.htmlsi=YqNKvbMVAXcCWRT4

    • @CsabaKissColorado
      @CsabaKissColorado Рік тому

      @@cagataycivici I am looking forward to the video I used this ternary expression in pt options to have different icons for true and false values: `icon: ({props}) => props.modelValue ? 'true-class': 'false-class'; `.
      Is that the recommended way of doing it?

    • @cagataycivici
      @cagataycivici  Рік тому

      @@CsabaKissColorado Have you managed to make it work? We usually suggest templating instead of PT for such cases but if the font is a font icon e.g. fa-check or pi-check, PT should do the job as well.

    • @CsabaKissColorado
      @CsabaKissColorado Рік тому

      @@cagataycivici I managed to make it work. unfortunately, we can't use font icons (don't ask!), I needed to replace the simple primeIcons with custom classes that use svgs.

    • @cagataycivici
      @cagataycivici  Рік тому

      @@CsabaKissColoradoI had a team meeting and the general idea is to prefer templating instead of PT when customizing icons. We switched to inline SVGs instead of font icons in recent releases and provided templating for all of them.

  • @mrrolandlawrence
    @mrrolandlawrence Рік тому +2

    great tutorials.

  • @hcivelek
    @hcivelek Рік тому +1

    Sounds great!

  • @mustafa60x
    @mustafa60x 5 місяців тому

    great video

  • @aturan-fo1qt
    @aturan-fo1qt Рік тому +1

    Thanks 👍👍👍

  • @LanFeusT23
    @LanFeusT23 Рік тому

    How do you use passthrough if you want breakpoints?

    • @cagataycivici
      @cagataycivici  Рік тому

      With util classes like md: sm:

    • @LanFeusT23
      @LanFeusT23 Рік тому

      @@cagataycivici sorry I should have been more specific. That works for the class property. I wanted to know for the style option. One way is to set the style option to a css variable and then just use normal css to declare your vars and media queries

    • @cagataycivici
      @cagataycivici  Рік тому +1

      @@LanFeusT23The upcoming styled mode supports breakpoints but unstyled mode only supports it with utilities right now.