Skip to content

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

@ajay-pal1

Description

@ajay-pal1

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]
}
}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions