plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: Wireui components are not recognized

Open haringsrob opened this issue 3 years ago • 3 comments

Feature Description

Hi,

When using components from https://livewire-wireui.com they are not recognised/completed. Could these be added?

Cheers,

haringsrob avatar Sep 09 '22 05:09 haringsrob

+1

beshoo avatar Sep 15 '22 12:09 beshoo

+2

rabol avatar Oct 12 '22 12:10 rabol

image

adelf avatar Oct 12 '22 14:10 adelf

When is next release ?

rabol avatar Nov 15 '22 13:11 rabol

Soon https://twitter.com/laravel_idea/status/1592461960419106817

haringsrob avatar Nov 15 '22 14:11 haringsrob

Released!

adelf avatar Nov 16 '22 15:11 adelf

yes, but it does not work :(

I have this is my blade:

<x-wireui::select
                    label="Search a ingredient"
                    placeholder="Select some ingredient"
                    :async-data="[
                'api'=>route('api.ingredient-search'),
                'credentials' => 'include'
                ]"
                    option-label="name"
                    option-value="id"
                />

and then I get this error:

Undefined variable $optionDescription

rabol avatar Nov 17 '22 11:11 rabol

This is a PHP error message? If yes - I only added completion for these components...

adelf avatar Nov 17 '22 11:11 adelf

What kind of setup does one need to do in order for this to work ?

rabol avatar Nov 22 '22 13:11 rabol

@rabol You're importing the livewire blade view using it <x-wireui::select, the component name is <x-select, this component uses a class

ph7jack avatar Nov 26 '22 19:11 ph7jack

@adelf I'm still getting the error highlight for wireui components or any other components from third-party packages I get the views files auto completions, but not the real component name image

ph7jack avatar Nov 26 '22 19:11 ph7jack

@rabol You're importing the livewire blade view using it <x-wireui::select, the component name is <x-select, this component uses a class

yes, but i get the auto-complete even if i update the config to have a different alias e.g. i my setup all are named wireui.XXXX

but I still get the autocomplete for wirui::select

rabol avatar Nov 27 '22 08:11 rabol

Let's continue in #682

adelf avatar Nov 28 '22 18:11 adelf