You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Advanced Search modal in NextAdmin does not support custom formatting for input fields. While the library provides excellent support for custom inputs and formatters in edit forms via edit.fields[field].input and edit.fields[field].handler.get, these customizations do not apply to the Advanced Search inputs.
This creates an inconsistent user experience, particularly for numeric fields where comma-separated formatting significantly improves readability.
Use Case
In our application, we have a model with several currency fields
Current Behavior:
In the list view: Values display as $100,000 (using formatter)
In edit forms: Values display as 100000 (using handler.get)
In Advanced Search: Users must type 100000 with no visual formatting
Expected Behavior:
Users should be able to type 100,000 with commas in the Advanced Search inputs, providing a consistent and user-friendly experience across the entire admin interface.
Proposed Solution
Add support for input formatting in Advanced Search through one of these approaches:
Description
Currently, the Advanced Search modal in NextAdmin does not support custom formatting for input fields. While the library provides excellent support for custom inputs and formatters in edit forms via
edit.fields[field].inputandedit.fields[field].handler.get, these customizations do not apply to the Advanced Search inputs.This creates an inconsistent user experience, particularly for numeric fields where comma-separated formatting significantly improves readability.
Use Case
In our application, we have a model with several currency fields
Current Behavior:
$100,000(usingformatter)100000(usinghandler.get)100000with no visual formattingExpected Behavior:
Users should be able to type
100,000with commas in the Advanced Search inputs, providing a consistent and user-friendly experience across the entire admin interface.Proposed Solution
Add support for input formatting in Advanced Search through one of these approaches:
Option 1: Extend existing
edit.fieldsconfigurationOption 2: Allow custom input components for Advanced Search
Option 3: Global input customization
Additional Context
This feature would benefit any application dealing with:
References
Documentation: https://next-admin.premieroctet.com/
Current Advanced Search implementation: dist/components/advancedSearch/AdvancedSearchInput.js