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

[React] Adding all combo topics for React #1151

Merged
merged 7 commits into from
Apr 23, 2024
2 changes: 1 addition & 1 deletion doc/en/components/inputs/combo/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const disableFiltering = (switchComponent: IgrSwitch) => {
switchCaseSensitiveRef.current.disabled = switchComponent.checked;
};

const showCaseSencitiveIcon = (switchComponent: IgrSwitch) => {
const showCaseSensitiveIcon = (switchComponent: IgrSwitch) => {
comboRef.current.caseSensitiveIcon = switchComponent.checked;
};

Expand Down
4 changes: 4 additions & 0 deletions doc/en/components/inputs/combo/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The {ProductName} ComboBox component allows defining custom templates for differ

The `itemTemplate` is a custom template that if defined should be used when rendering items in the list of options.

<!-- WebComponents -->
```ts
import { ComboItemTemplate } from 'igniteui-webcomponents';

Expand All @@ -32,6 +33,7 @@ const itemTemplate: ComboItemTemplate<City> = ({ item }) => {

combo.itemTempate = itemTemplate;
```
<!-- end: WebComponents -->

<!-- Blazor -->
To template your items in a Blazor app, you need to define a template in a separate JavaScript file. Let's create a new file under the `wwwroot` directory called `templates.js`.
Expand Down Expand Up @@ -69,6 +71,7 @@ Then in our application we can refer to the template we declared via the `ItemTe

The `groupHeaderTemplate` is a custom template that if defined should be used when rendering group headers in the list of options.

<!-- WebComponents -->
```ts
import { ComboItemTemplate } from 'igniteui-webcomponents';

Expand All @@ -78,6 +81,7 @@ const groupHeaderTemplate: ComboItemTemplate<City> = ({ item }) => {

combo.groupHeaderTemplate = groupHeaderTemplate;
```
<!-- end: WebComponents -->

<!-- Blazor -->
First define the group header template:
Expand Down
Loading