Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 10 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    slots Posts
  • slots #106838

    rkedward
    Participant

    It seems in many places vue-slots could be used to distribute components in a template as opposed to component construction via javascript programming.

    For example, in this vue-grid-demo the buttons in the toolbar are created via javascript.

    A better vue-dev experience is to use slots, something like this:

    ...
    <JqxGrid ref="myGrid" :source="dataAdapter"  :columns="columns">
      <template v-slot:toolbar>
        <JqxButton>Button1</JqxButton>
        <JqxButton>Button2</JqxButton>
      </template>
    
      <template v-slot:StatusBar>
        <JqxButton>Button3</JqxButton>
        <JqxOtherComp></JqxOthercomp>
      </template>
    </JqxGrid>
    ...
    slots #106879

    Martin
    Participant

    Hello rkedward,

    Thank you for the feedback!

    Best Regards,
    Martin

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.