This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdiacritics-filtering.tsx
More file actions
50 lines (45 loc) · 1.63 KB
/
diacritics-filtering.tsx
File metadata and controls
50 lines (45 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* AutoComplete Diacritics Filtering Sample
*/
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
import { SampleBase } from '../common/sample-base';
import './custom-filtering.css';
export class DiacriticsFiltering extends SampleBase<{}, {}> {
private diacriticsData: string[] = [
'Águilas',
'Ajedrez',
'Ala Delta',
'Álbumes de Música',
'Alusivos',
'Análisis de Escritura a Mano',
'Dyarbakır',
'Derepazarı ',
'Gülümsemek ',
'Teşekkürler',
'Güle güle.',
'Gülhatmi',
'Gülünç'
];
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<div id='custom-filtering'>
<AutoCompleteComponent id="diacritics" ignoreAccent={true} dataSource={this.diacriticsData} placeholder="e.g: gul" />
</div>
</div>
<div id="action-description">
<p>This sample demonstrates the diacritics filter functionality of the AutoComplete. Type the characters ‘gul’ in the AutoComplete
element and it displays the suggestion list ignoring the diacritics lists.</p>
</div>
<div id="description">
<p>The AutoComplete filtering will ignore the <a href="https://en.wikipedia.org/wiki/Diacritic" target="_blank"> diacritics </a> which makes it easier to filter the results in international characters
lists when the <code>ignoreAccent</code> is enabled.</p>
<p>This sample illustrates using the international characters data.</p>
</div>
</div>
);
}
}