Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/tabs-showcase/tabs-showcase.sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@for (contact of contacts; track contact.id) {
<igc-tab [selected]="contact.id === selectedTabId">
@if(!properties.hideIcon) {
<igx-icon slot="label">folder</igx-icon>
<igc-icon name="folder" slot="label"></igc-icon>
}
@if(!properties.hideText) {
<span slot="label">{{ contact.text }}</span>
Expand Down
9 changes: 8 additions & 1 deletion src/app/tabs-showcase/tabs-showcase.sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ import {
defineComponents,
IgcTabsComponent,
IgcTabComponent,
IgcIconComponent,
registerIconFromText
} from 'igniteui-webcomponents';
import {
PropertyChangeService,
Properties,
} from '../properties-panel/property-change.service';

defineComponents(IgcTabsComponent, IgcTabComponent);
defineComponents(IgcTabsComponent, IgcTabComponent, IgcIconComponent);

registerIconFromText(
'folder',
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Z"/></svg>'
);

@Component({
selector: 'app-tabs-showcase-sample',
Expand Down
Loading