File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33
44<div class =" container sample center size-medium" style =" flex-direction : row ; gap : 8px " >
5- <IgbChip Selectable =" true" Removable =" true" >
5+ <IgbChip Selectable =" true" Removable =" true" RemoveScript = " handleChipRemove " >
66 <span slot =" select" >
77 <IgbIcon @ref =" @SelectIconRef" IconName =" custom-select" Collection =" material" ></IgbIcon >
88 </span >
Original file line number Diff line number Diff line change 1+ function handleChipRemove ( event ) {
2+ const chip = event . target ;
3+ chip . remove ( ) ;
4+ }
5+ igRegisterScript ( "handleChipRemove" , handleChipRemove , false ) ;
Original file line number Diff line number Diff line change 1010 < title > Samples | IgniteUI for Blazor | Infragistics</ title >
1111 < base href ="/ " />
1212 < link href ="https://static.infragistics.com/xplatform/images/browsers/blazor.ico " rel ="icon " type ="image/x-icon ">
13- < link rel ="stylesheet " href ="https://static.infragistics.com/xplatform/css/samples/shared.v6.css " type ="text/css " />
13+ < link rel ="stylesheet " href ="https://static.infragistics.com/xplatform/css/samples/shared.v6.css " type ="text/css " />
1414 < link href ="https://static.infragistics.com/xplatform/css/samples/blazor.css " rel ="stylesheet " />
1515 < link href ="_content/IgniteUI.Blazor/themes/light/bootstrap.css " rel ="stylesheet " />
1616</ head >
2525 <!-- importing blazor bundle for IG controls: -->
2626 < script src ="_content/IgniteUI.Blazor/app.bundle.js "> </ script >
2727 < script src ="_framework/blazor.webassembly.js "> </ script >
28+ < script src ="events.js "> </ script >
2829
2930</ body >
3031
Original file line number Diff line number Diff line change 22
33
44<div class =" container sample vertical" >
5- <IgbChip class =" size-medium" Selectable =true Removable =true > Chip
5+ <IgbChip class =" size-medium" Selectable =true Removable =true RemoveScript =" handleChipRemove" >
6+ Chip
67 </IgbChip >
78</div >
89
Original file line number Diff line number Diff line change 1+ function handleChipRemove ( event ) {
2+ const chip = event . target ;
3+ chip . remove ( ) ;
4+ }
5+ igRegisterScript ( "handleChipRemove" , handleChipRemove , false ) ;
Original file line number Diff line number Diff line change 2525 <!-- importing blazor bundle for IG controls: -->
2626 < script src ="_content/IgniteUI.Blazor/app.bundle.js "> </ script >
2727 < script src ="_framework/blazor.webassembly.js "> </ script >
28+ < script src ="events.js "> </ script >
2829
2930</ body >
3031
Original file line number Diff line number Diff line change 11@using IgniteUI .Blazor .Controls
22
33<div class =" container sample vertical" >
4- <IgbChip class =" size-medium" Selectable =true Removable =true > Chip
4+ <IgbChip class =" size-medium" Selectable =true Removable =true RemoveScript =" handleChipRemove" >
5+ Chip
56 </IgbChip >
67</div >
78
Original file line number Diff line number Diff line change 1+ function handleChipRemove ( event ) {
2+ const chip = event . target ;
3+ chip . remove ( ) ;
4+ }
5+ igRegisterScript ( "handleChipRemove" , handleChipRemove , false ) ;
Original file line number Diff line number Diff line change 2525 <!-- importing blazor bundle for IG controls: -->
2626 < script src ="_content/IgniteUI.Blazor/app.bundle.js "> </ script >
2727 < script src ="_framework/blazor.webassembly.js "> </ script >
28+ < script src ="events.js "> </ script >
2829
2930</ body >
3031
Original file line number Diff line number Diff line change 22
33
44<div class =" container sample center" style =" flex-direction : row ; gap : 8px " >
5- <IgbChip Variant =" StyleVariant.Primary" Selectable =" true" Removable =" true" > Primary
5+ <IgbChip Variant =" StyleVariant.Primary" Selectable =" true" Removable =" true" RemoveScript =" handleChipRemove" >
6+ Primary
67 </IgbChip >
78
8- <IgbChip Variant =" StyleVariant.Info" Selectable =" true" Removable =" true" > Info
9+ <IgbChip Variant =" StyleVariant.Info" Selectable =" true" Removable =" true" RemoveScript =" handleChipRemove" >
10+ Info
911 </IgbChip >
1012
11- <IgbChip Variant =" StyleVariant.Success" Selectable =" true" Removable =" true" > Success
13+ <IgbChip Variant =" StyleVariant.Success" Selectable =" true" Removable =" true" RemoveScript =" handleChipRemove" >
14+ Success
1215 </IgbChip >
1316
14- <IgbChip Variant =" StyleVariant.Warning" Selectable =" true" Removable =" true" > Warning
17+ <IgbChip Variant =" StyleVariant.Warning" Selectable =" true" Removable =" true" RemoveScript =" handleChipRemove" >
18+ Warning
1519 </IgbChip >
1620
17- <IgbChip Variant =" StyleVariant.Danger" Selectable =" true" Removable =" true" > Danger
21+ <IgbChip Variant =" StyleVariant.Danger" Selectable =" true" Removable =" true" RemoveScript =" handleChipRemove" >
22+ Danger
1823 </IgbChip >
1924</div >
2025
You can’t perform that action at this time.
0 commit comments