Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding vue-directives #87

Open
Muetze42 opened this issue Jan 17, 2025 · 0 comments
Open

Understanding vue-directives #87

Muetze42 opened this issue Jan 17, 2025 · 0 comments

Comments

@Muetze42
Copy link

I would like PhpStorm to recognize a tooltip directive.

v-tooltip is recognized with the content of my web-types.json, but v-tooltip.top for example not:

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "framework": "vue",
    "js-types-syntax": "typescript",
    "description-markup": "markdown",
    "framework-config": {
        "enable-when": {
            "file-extensions": [
                "vue"
            ]
        }
    },
    "contributions": {
        "html": {
            "vue-directives": [
                {
                    "name": "tooltip",
                    "description": "Creating a tooltip with floating-vue",
                    "doc-url": "https://floating-vue.starpad.dev/guide/directive",
                    "attribute-value": {
                        "type": "any",
                        "required": true
                    },
                    "vue-modifiers": [
                        {
                            "name": "top",
                            "description": "Positions the tooltip on the top of the trigger element"
                        },
                        {
                            "name": "right",
                            "description": "Positions the tooltip on the right of the trigger element"
                        },
                        {
                            "name": "bottom-start",
                            "description": "Positions the tooltip on the bottom-start of the trigger element"
                        }
                    ]
                }
            ]
        }
    }
}

How can I implement it so that my IDE also recognizes v-tooltip.top, v-tooltip.bottom, v-tooltip.right etc.?

Image

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

No branches or pull requests

1 participant