Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Fix docs #1

Open
boosh opened this issue Jun 12, 2024 · 0 comments
Open

Fix docs #1

boosh opened this issue Jun 12, 2024 · 0 comments

Comments

@boosh
Copy link

boosh commented Jun 12, 2024

The docs are wrong. Instead of:

<div x-tour:bottom="{step: 1, title: 'Example title', description: 'This is the description'}"></div>
<div x-tour:top="{step: 2, title: 'Example title', description: 'This is the description'}"></div>
<div x-tour:left="{step: 3, title: 'Example title', description: 'This is the description'}"></div>
<div x-tour:right="{step: 4, title: 'Example title', description: 'This is the description'}"></div>

It should be:

    <div x-data>
        <button x-tour.start>Start tour</button>

        <div x-tour.bottom="{step: 1, title: 'Example title', description: 'This is the description'}"></div>
        <div x-tour.top="{step: 2, title: 'Example title', description: 'This is the description'}"></div>
        <div x-tour.left="{step: 3, title: 'Example title', description: 'This is the description'}"></div>
        <div x-tour.right="{step: 4, title: 'Example title', description: 'This is the description'}"></div>
    </div>

Without x-data, the plugin is never started, and it needs to use dots not colons on x-tour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant