Releases: Accel-Hack/react-components
Releases · Accel-Hack/react-components
Allow undefined for search param
v0.2.7 allow undefined for search param
Change components to memo / option to set limit
The following are updated
- the componets are now memo
- limit can be set by the opiton field
Change option undefined to empty array
change the param type (undefined will not be allowed)
Add CheckBox in Header
Add A check box in the header column to be able to select all at once
Create Suggestion Filter
Add a new filter component
filter whoose options will can be filtered by the input text
let filter = new SuggestionFilter.Class({
type: FilterType.SUGGESTION,
name: '科目',
field: 'subject',
options: async (param) => {
const list = [
{caption: 'try', value: 'ty'},
{caption: 'catch', value: 'ct'},
{caption: 'finally', value: 'fn'},
]
return list.filter((f) => f.caption.includes(param))
}
})
render(<SuggestionFilter.Component filter={filter}/>)
Create Selectable Filter
Add a new filter component
filter which can be multiple seleted
let filter = new SelectableFilter.Class({
type: FilterType.SELECTABLE,
name: '言語',
field: 'language',
maxCount: 2,
options: [
{caption: 'English', value: 'en'},
{caption: 'Japanese', value: 'ja'},
{caption: 'French', value: 'fr'},
],
});
render(<SelectableFilter.Component filter={filter}/>)
Update readme links
Update readme links for the package
Change package name
changed package names
- change scope to
@accelhack-org
- change package name to
react-components
Use namespace / make class for tables
Made classes for tables
Fix paging function
fix the bug of refactoring