tallstackui / tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.
https://tallstackui.com
MIT License
436 stars 36 forks source link

[Help Needed] need to parse json to select styled component http://127.0.0.1:8000/jsondata/routes output is json #540

Closed abhideshpande closed 1 day ago

abhideshpande commented 1 week ago

What Happened

Thanks a lot for such a great package, would like to explore having jsondata as input to select.styled.

http://127.0.0.1:8000/jsondata/routes output is [{"id":"filament.exports.download","name":"filament.exports.download"},{"id":"filament.imports.failed-rows.download","name":"filament.imports.failed-rows.download"},{"id":"filament.admin.auth.login","name":"filament.admin.auth.login"},{"id":"filament.admin.auth.logout","name":"filament.admin.auth.logout"},{"id":"filament.admin.pages.dashboard","name":"filament.admin.pages.dashboard"},{"id":"login","name":"login"},{"id":null,"name":null},{"id":"logout","name":"logout"},{"id":"password.request","name":"password.request"},{"id":"password.reset","name":"password.reset"},{"id":"password.email","name":"password.email"},{"id":"password.update","name":"password.update"}]

my blade

my Component <x-ts-select.styled label="{{ $label }}" :request="route('jsondata',['qry' => $qry ])" select="label:name|value:id" wire:model.defer="{{ $wireModel }}" />

Component

Select Styled

How to Reproduce

create blade and component as requesteda about

Public Repository

No response

Laravel Version

10.48.14

Livewire Version

3.5.1

TallStackUI Version

1.32.0

PHP Version

8.3.7

Operation System

macOS

Notes

No response

devajmeireles commented 5 days ago

I'm trying to understand. Do you want to select an option and with this assign a json to the url variable?

devajmeireles commented 1 day ago

Closed due to inactivity.