N16htSh1ft
N16htSh1ft
FFilament
Created by N16htSh1ft on 4/18/2024 in #❓┊help
Infolist - TextEntry - listWithLineBreaks
Hello together! I am new in this channel and kind of afraid that I do something wrong with my post. So upfront please excuse for it. Issue: I am storing in my table data with line breaks e.g.
"v=spf1
+ip4:192.168.2.1
+ip4:192.168.2.2
-all"
"v=spf1
+ip4:192.168.2.1
+ip4:192.168.2.2
-all"
I am using in my Resource the public static function infolist and try together with TextEntry::make and ->listWithLineBreaks() to display the line breaks in the view. However, it seems that the line breaks are ignored and all is in one line. E.g.
...
} else {
$schema[] = TextEntry::make('spf_details')
->label('SPF Record(s)')
->badge()
->icon('heroicon-m-server-stack')
->iconColor('primary')
->listWithLineBreaks()
->weight(FontWeight::Bold)
->color('success')
->size(TextEntry\TextEntrySize::Large);
}
...
...
} else {
$schema[] = TextEntry::make('spf_details')
->label('SPF Record(s)')
->badge()
->icon('heroicon-m-server-stack')
->iconColor('primary')
->listWithLineBreaks()
->weight(FontWeight::Bold)
->color('success')
->size(TextEntry\TextEntrySize::Large);
}
...
Does anyone has a hint what I am doing wrong? Greetings and happy coding! N16htSh1ft
4 replies