Beistrich bei Eingabe statt Punkt
This commit is contained in:
1 parent
096c8cf091
commit
ddbf171881
15 files changed
+407
-305
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
TextColumn::make('flaeche')
|
||||
->numeric(
|
||||
decimalPlaces: 2,
|
||||
decimalSeparator: ',',
|
||||
thousandsSeparator: '.'
|
||||
)
|
||||
// ->updateStateUsing(function ($record, $state) {
|
||||
// return $record->update(['flaeche' => str_replace(',', '.', $state)]);
|
||||
// })
|
||||
// ->extraInputAttributes(['onClick' => 'this.select()'])
|
||||
->summarize(Sum::make()->label('Gesammt')->numeric(
|
||||
decimalPlaces: 2,
|
||||
)->suffix(new HtmlString(' m²')))
|
||||
->suffix(new HtmlString(' m²'))
|
||||
->width('2rem')
|
||||
// ->rules(['required'])
|
||||
->alignment('right')
|
||||
->label('Fläche')
|
||||
->searchable(),
|
||||
// ->validationMessages([
|
||||
// 'required' => 'Die Eingabe einer Fläche ist erforderlich.',
|
||||
// 'decimal' => 'Für die Fläche sind zwei Dezimalstellen erforderlich.',
|
||||
// ])
|
||||
// ->afterStateUpdated(function (Component $livewire) {
|
||||
// $livewire->dispatch('refreshProjektAllgemeinflaechen');
|
||||
// }),
|
||||
Reference in new issue
Block a user