vue-form-wizard icon indicating copy to clipboard operation
vue-form-wizard copied to clipboard

Add support for navigation and header slot

Open icrotz opened this issue 4 years ago • 15 comments

Features:

  • Add support for custom navigation
  • Add support for custom header
<form-wizard shape="square" color="#3498db">
          <template slot="header" slot-scope="props">
            Title: {{ props.title }}
          </template>
          <template slot="navigation" slot-scope="props">
            Add something here
          </template>
          <tab-content title="Personal details" icon="ti-user">
            First tab
          </tab-content>
          <tab-content title="Additional Info" icon="ti-settings">
            My second tab content
          </tab-content>
          <tab-content title="Last step" icon="ti-check">
            Yuhuuu! This seems pretty damn simple
          </tab-content>
</form-wizard>

icrotz avatar Aug 08 '19 12:08 icrotz

@cristijora @charles-salmon Any chance one of you kind gentlemen could please merge this most-needed PR? I want to customize the tabs as well and replace by TailwindCSS tabs.

Would be lovely if you could also merge https://github.com/BinarCode/vue-form-wizard/pull/316 as well

Thank you kindly!!

vesper8 avatar Dec 02 '19 11:12 vesper8

@cristijora @charles-salmon any update please? Is this project abandonned? This is a much needed PR and using forks is not the easiest thing.. would love to see this merged in.. we need more control over the steps.. for example I would like to have them at the bottom instead of at the top and currently that isn't easy if possible at all.

Thanks

vesper8 avatar Jan 22 '20 16:01 vesper8

@icrotz @cristijora Any progress on this?

michaelbukachi avatar Jun 24 '20 13:06 michaelbukachi

The project is dead...

icrotz avatar Jun 29 '20 08:06 icrotz

@icrotz This is necessary.

I offer myself as a maintainer if you guys have to time

BRafols avatar Aug 07 '20 15:08 BRafols

@vesper8 Sorry, I must have missed your comments earlier. I don't actually have write access to this repository, so am unable to help from the perspective of providing a review / merging this in - I simply contributed some improvements to the type definitions.

@icrotz There's a fair number of formatting changes that take away from the meaning of your PR. If these were tidied up, it would be a lot easier for @cristijora to read. It looks as though you perhaps have Prettier installed globally or something. While I haven't done any front-end development for a while, the intent of your PR definitely seems to contribute positively.

@BRafols If you don't hear back from @cristijora, perhaps you could fork the repository. You could also try using the Binarcode Contact Us page to see if they'd be happy to transfer the repository to you or instate appropriate rights.

charles-salmon avatar Aug 08 '20 00:08 charles-salmon

Hello @icrotz I got access to this repo and will try to keep the PR's going.

Could you please remove the prettier formatting from the code? I'll probably add that personally in a different PR.

If you do that I'll merge.

Thanks for your contribution

BRafols avatar Sep 22 '20 07:09 BRafols

Done :D

icrotz avatar Sep 22 '20 09:09 icrotz

I'm waiting to write with tailwindcss :) I hope there will be an improvement

productdevbook avatar Jan 23 '21 07:01 productdevbook

How to add html code into tab title?

tried with <tab-content title="Personal<br>Detail" :before-change="firstPhaseCheck" icon="ti-check"> got no luck

thank you regards sigit

aswzen avatar Aug 10 '21 19:08 aswzen

@aswzen You would need to use a slot to render HTML inside the FormWizard component. The TabContent component does not have any slots.

charles-salmon avatar Aug 15 '21 03:08 charles-salmon

Is this PR dead? Really need this feature to customize the navigation.

lemaia avatar Nov 25 '22 20:11 lemaia

@lemaia This project is dead, you can my fork or use a package like https://www.npmjs.com/package/patch-package to add this feature yourself. It's pretty easy to add.

icrotz avatar Nov 25 '22 21:11 icrotz

If you ever switch to Vue3, someone has ported this package and is actively maintaining it and fixing issues too https://github.com/parsajiravand/vue3-form-wizard

vesper8 avatar Nov 26 '22 12:11 vesper8

@aswzen You would need to use a slot to render HTML inside the FormWizard component. The TabContent component does not have any slots.

we looking for TabContent with slot to change color of the tab navigation....

<wizard-step 
    slot-scope="props"
    slot="step"
    :tab="props.tab"
    :transition="props.transition"
    :index="props.index">
// but how // i didnt get it // need to custom ui and enable click event , // this code make disable event click even you have set activeAll() by `refs`
</wizard-step>

yogithesymbian avatar Dec 17 '22 22:12 yogithesymbian