Component Types
IdAsyncSelect
Entity record search selectionServer search support
OrderBySelect
Sort option selectionEnum based
SearchFieldSelect
Search target field selectionDynamic search criteria
StatusSelect
Status/role selectionEnum based
1. IdAsyncSelect
Generation Condition
Auto-generated for all Entities.File Location
UserIdAsyncSelect.tsxProjectIdAsyncSelect.tsxCompanyIdAsyncSelect.tsx
Code Structure
Usage Example
Key Features
1. Server Search:- Calls backend API with user-entered keyword
- Display real-time search results
- Fast search even with large datasets
username (email) format, but you can modify the component file directly.
IdAsyncSelect vs Regular Select
- IdAsyncSelect: Hundreds~thousands+ records (search required)
- Regular Select: 10~50 or fewer fixed options
2. OrderBySelect
Generation Condition
Auto-generated when Entity’sOrderBy enum is defined.
File Location
Code Structure
Usage Example
OrderBy Enum Definition
Defined in the backend.3. SearchFieldSelect
Generation Condition
Auto-generated when Entity’sSearchField enum is defined.
File Location
Usage Example
SearchField Enum Definition
SearchField vs SearchInput
- SearchFieldSelect: Select search target field (ID, name, email, etc.)
- Input (keyword): Enter actual search term
4. StatusSelect (Enum Select)
Generation Condition
Auto-generated when Entity has enum-type fields defined.File Location
ProjectStatusSelect.tsx(Project’s status field)UserRoleSelect.tsx(User’s role field)
Usage Examples
List Filtering
Form Input
Enum Definition
Defined in backend Entity.Component Customization
When to Modify?
Auto-generated components are initial templates and can be modified to fit project requirements. When modification is needed:- Change IdAsyncSelect label format
- Change search target Subset
- Change defaults like placeholder, className
- Add additional filtering logic
Modification Example 1: IdAsyncSelect Label
Modification Example 2: Change Search Subset
By default uses Subset “A”, but can be changed if more info is needed.Modification Example 3: Additional Filtering
To search only users meeting certain conditions:Regeneration Policy
Are these auto-generated files?
No. Generated once and not regenerated afterward.When regeneration is needed
- Entity structure significantly changed
- Want to delete existing component and start from scratch
Scaffolding FilesThese components are “scaffolding files”. They provide initial templates and developers freely modify them afterward.
Different from “real-time sync files” like
sonamu.generated.ts.Usage Patterns
List Page Filters
Form Input
Related Documentation
- IdAsyncSelect Details - Advanced IdAsyncSelect usage
- useListParams - List filtering hook
- Using Services - API calls
- Defining Entities - Backend Entity structure