@@ -2,12 +2,9 @@ import React from 'react';
22import ReactDOM from 'react-dom/client' ;
33import './index.css' ;
44import './ExpansionPanelCustomization.css' ;
5- import { IgrExpansionPanel , IgrButton , IgrButtonModule , IgrExpansionPanelModule } from 'igniteui-react' ;
5+ import { IgrExpansionPanel , IgrButton } from 'igniteui-react' ;
66import 'igniteui-webcomponents/themes/light/bootstrap.css' ;
77
8- IgrButtonModule . register ( ) ;
9- IgrExpansionPanelModule . register ( ) ;
10-
118export default class ExpansionPanelComponentCustomization extends React . Component < any , any > {
129
1310 constructor ( props : any ) {
@@ -22,16 +19,16 @@ export default class ExpansionPanelComponentCustomization extends React.Componen
2219 return (
2320 < div className = "container sample" >
2421 < IgrExpansionPanel onClosed = { this . onExpansionPanelClosed } onOpened = { this . onExpansionPanelOpened } indicatorPosition = "end" >
25- < h1 key = "epTitle" slot = "title" > Golden Retriever</ h1 >
26- < h3 key = "epSubtitle" slot = "subtitle" > Medium-large gun dog</ h3 >
27- < div key = "epIndicator" slot = "indicator" > { this . state . expansionText } </ div >
28- < img key = "epImg" height = "100" src = "https://i.ibb.co/6ZdY7cn/Untitled-design-3.png" alt = "" > </ img >
29- < span key = "epSpan" > The Golden Retriever is a medium-large gun dog that retrieves shot waterfowl, such as ducks
22+ < h1 slot = "title" > Golden Retriever</ h1 >
23+ < h3 slot = "subtitle" > Medium-large gun dog</ h3 >
24+ < div slot = "indicator" > { this . state . expansionText } </ div >
25+ < img height = "100" src = "https://i.ibb.co/6ZdY7cn/Untitled-design-3.png" alt = "" > </ img >
26+ < span > The Golden Retriever is a medium-large gun dog that retrieves shot waterfowl, such as ducks
3027 and upland game birds, during hunting and shooting parties.[3] The name retriever refers to the breeds ability
3128 to retrieve shot game undamaged due to their soft mouth. Golden retrievers have an instinctive love of water, and
3229 are easy to train to basic or advanced obedience standards.</ span >
33- < IgrButton key = "epBtn" href = "https://en.wikipedia.org/wiki/Golden_Retriever" variant = "outlined" target = "_blank" >
34- < span key = "btnSpan" > Read more</ span >
30+ < IgrButton href = "https://en.wikipedia.org/wiki/Golden_Retriever" variant = "outlined" target = "_blank" >
31+ < span > Read more</ span >
3532 </ IgrButton >
3633 </ IgrExpansionPanel >
3734 </ div >
0 commit comments