Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ajay-pal1

        Issue actions

          Is any way to use the regex patten to trigger · Issue #243 · webscopeio/react-textarea-autocomplete