Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is any way to use the regex patten to trigger #243

Open
ajay-pal1 opened this issue Oct 23, 2023 · 0 comments
Open

Is any way to use the regex patten to trigger #243

ajay-pal1 opened this issue Oct 23, 2023 · 0 comments

Comments

@ajay-pal1
Copy link

trigger={{
[/[A-Za-z]/]: {
dataProvider: (token) => {
return mockData.filter((item) =>
item[entityLabel].toLowerCase().includes(token.toLowerCase())
);
},
component: ({ entity, selected }) => {
return (
<MenuItem sx={{ ...MenuItemStyle, borderBottom: '1px solid #F5F5F5' }} onClick={() => { console.log('===>entity', entity) }}>

<CustomTypography
text={entity[entityLabel]}
sx={{
pt: 1,
pb: 1,
color: '#141414',
fontWeight: 700,
fontSize: '12px',
lineHeight: '16px',
fontStyle: 'normal',
fontFamily: 'Noto Sans',
}}
/>


)
},
output: (item, trigger) => item[entityLabel]
}
}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant