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

BlitzListForm with Quasar framework #130

Closed
damiankao opened this issue Apr 13, 2022 · 2 comments
Closed

BlitzListForm with Quasar framework #130

damiankao opened this issue Apr 13, 2022 · 2 comments

Comments

@damiankao
Copy link

This is a sample schema I am using to display a BlitzListForm within a BlitzForm:

[
    {
        "options": [
            {
                "value": "1",
                "label": "1"
            },
            {
                "value": "2",
                "label": "2"
            }
        ],
        "id": "key1",
        "label": "key1",
        "component": "QSelect",
        "dense": true,
        "internalLabels": true,
        "outlined": true,
        "hint": "quasar hint"
    },
    {
        "id": "key2",
        "label": "key2",
        "component": "BlitzListForm",
        "schema": [
            {
                "options": [
                    {
                        "value": "a",
                        "label": "a"
                    },
                    {
                        "value": "b",
                        "label": "b"
                    }
                ],
                "id": "subkey1",
                "label": "source type",
                "component": "QSelect",
                "dense": true,
                "internalLabels": true,
                "outlined": true
            },
            {
                "id": "subkey2",
                "label": "source data",
                "component": "QInput",
                "dense": true,
                "type": "textarea",
                "internalLabels": true,
                "outlined": true
            }
        ]
    }
]

The expected behavior is that an q-select component is shown with 2 select options (1,2). And a BlitzListForm is displayed where each item in the array is defined by a q-select (options a,b) and a q-input value.

The outer q-select with options 1,2 displays correctly, but the BlitzListForm only shows the form label (key2) without inner q-components.

Is there a way to get this to work with Quasar?

@damiankao
Copy link
Author

It turns out BlitzForm and BlitzListForm were not globally registered. I ended up just importing markRaw from Vue and used the locally registered components to make it work.

Thanks for the great component.

@mesqueeb
Copy link
Member

glad it worked!

--
Blitzar was made with 💜 by Luca Ban.
You cannot sponsor every project, but next time you do, think of this one for its prolonged maintenance.

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

2 participants