Multiline TextInputColumn

Hi all, Question is : is it possible to have a multiline TextInputColumn? By pressing the "Enter" key, it just saves, we cannot have multiple lines by default. Any idea? Thanks,
4 Replies
Mohamed Ayaou
Mohamed Ayaou3d ago
press Shift + Enter to avoid saving to be multi-lines by default you might just use ->extraAttributes(['class'=>'...']) to add the needed styles
Antoine
AntoineOP3d ago
Thanks @Mohamed Ayaou . I've already tried Shift+Enter but it does'nt work, it doesn't make the cursor go on a new line
LeandroFerreira
I think you need to create a custom column using a textarea tag
Antoine
AntoineOP2d ago
Thanks, this what I finally did and it works. However, I would have liked to call a method from my TextareaColumn.php file from the view, like I would do for any Livewire component. But the method is never accessible from the view. The only way I found to update the value was to use x-on:click="$wire.updateTableColumnState(....)". Do you have any idea why?

Did you find this page helpful?