How to solve long string(numeric) issue in datagrid?
- What I am trying to do:I am trying to build simcard management dashboard.
- What I did:so for this, I created table grid and displayed simcard data such as card number, phone number etc from external api.
- My issue:For example, simcard number format is 9999999999999999999, but it's showing like 1.0E+20I verified simcard number was loaded correctly from external api, but showing wrong on table grid, so I tried to use formatStateUsing function, but still showing wrong.I can't solve this problem.
- Code:```return $table ->columns([ // simoverview record id TextColumn::make('id') ->toggleable(isToggledHiddenByDefault: true), // client id TextColumn::make('portalClient') ->label('Client Id') ->toggleable(isToggledHiddenByDefault: true), // package TextColumn::make('PackageName') ->label('Pakke') ->alignLeft(), // imei TextColumn::make('IMEI') ->label('Simkort') ->copyable() ->copyMessage('Simkort copied') ->copyMessageDuration(1500) ->formatStateUsing(fn ($state) => (string) $state) ->weight('medium') ->alignLeft(), ]);```