F
Filament5mo ago
pelmer

Is there a way to set the defaults on Tables and InfoLists?

Is there a way to set these static properties on Tables and InfoLists without overriding the classes? It looks like they are used directly and not though getters or similar. I would like to do it globally based on user preference with for example configureUsing.
public static string $defaultCurrency = 'usd';

public static string $defaultDateDisplayFormat = 'M j, Y';

public static string $defaultDateTimeDisplayFormat = 'M j, Y H:i:s';

public static string $defaultTimeDisplayFormat = 'H:i:s';
public static string $defaultCurrency = 'usd';

public static string $defaultDateDisplayFormat = 'M j, Y';

public static string $defaultDateTimeDisplayFormat = 'M j, Y H:i:s';

public static string $defaultTimeDisplayFormat = 'H:i:s';
0 Replies
No replies yetBe the first to reply to this messageJoin