How are you filling it using JavaScript? show some code.
If you want to fill data from API you can do so.
For inputs:
Select::make('status')
->options(getDataFromApi());
For tables:
public function table(Table $table): Table
{
$apiCall = Http::asJson()
->acceptJson()
->get(config('app.url') . '/api/subscription');
return $table
// You might think this works, but it does not.
// It's not meant for this use-case
->viewData($apiCall->json('data'))
->columns([
TextColumn::make('user_name'),
TextColumn::make('name'),
TextColumn::make('price'),
TextColumn::make('start_date'),
TextColumn::make('end_date'),
]);
}
https://laraveldaily.com/post/filament-load-table-data-from-3rd-party-api
If you're using JavaScript in front-end you need to trigger $wire.set for it to reflect in Livewire.