44 < m-tab label ="Examples ">
55 < m-example header ="Modal " description ="A standard modal " [code] ="standardCode ">
66 < m-button (click) ="showModal = true "> Open Modal</ m-button >
7- {{showModal}}
7+ {{ showModal }}
88 < m-modal *ngIf ="showModal " imageContent (close) ="showModal = false ">
99 < m-modal-header >
1010 < m-icon icon ="question "> </ m-icon >
@@ -106,7 +106,7 @@ <h2 m-header dividing>Content</h2>
106106 </ m-tab >
107107 < m-tab label ="Variations ">
108108 < m-example header ="Show close button " description ="A modal can have a close button ">
109- < m-example-code [code] ="showCloseCode "/>
109+ < m-example-code [code] ="showCloseCode " />
110110 < ng-container >
111111 < m-modal *ngIf ="showWithClose " showClose hideFooter (close) ="showWithClose = false ">
112112 Some content
@@ -116,7 +116,7 @@ <h2 m-header dividing>Content</h2>
116116 </ m-example >
117117
118118 < m-example header ="Hide header " description ="Show a modal without a header ">
119- < m-example-code [code] ="hideHeaderCode "/>
119+ < m-example-code [code] ="hideHeaderCode " />
120120 < ng-container >
121121 < m-modal *ngIf ="showWithoutHeader " hideHeader (close) ="showWithoutHeader = false ">
122122 Some content
@@ -126,7 +126,7 @@ <h2 m-header dividing>Content</h2>
126126 </ m-example >
127127
128128 < m-example header ="Hide footer " description ="Show a modal without a footer ">
129- < m-example-code [code] ="hideFooterCode "/>
129+ < m-example-code [code] ="hideFooterCode " />
130130 < ng-container >
131131 < m-modal *ngIf ="showWithoutFooter " header ="Header " hideFooter showClose (close) ="showWithoutFooter = false ">
132132 Some content
@@ -136,7 +136,7 @@ <h2 m-header dividing>Content</h2>
136136 </ m-example >
137137
138138 < m-example header ="Hide dimmer " description ="Show a modal without a dimmer ">
139- < m-example-code [code] ="hideDimmerCode "/>
139+ < m-example-code [code] ="hideDimmerCode " />
140140 < ng-container >
141141 < m-modal *ngIf ="showWithoutDimmer " hideDimmer (close) ="showWithoutDimmer = false ">
142142 Some content
@@ -164,15 +164,15 @@ <h2 m-header dividing>Content</h2>
164164 </ m-example >
165165
166166 < m-example header ="Without content padding " description ="Removes the padding of the modal content ">
167- < m-example-code [code] ="noPaddingCode "/>
167+ < m-example-code [code] ="noPaddingCode " />
168168 < m-modal *ngIf ="showNoPadding " noPadding (close) ="showNoPadding = false ">
169169 This modal has no content padding
170170 </ m-modal >
171171 < m-button (click) ="showNoPadding = true "> Open without padding</ m-button >
172172 </ m-example >
173173
174174 < m-example header ="Inverted " description ="A modal can be displayed with inverted colors ">
175- < m-example-code [code] ="invertedCode "/>
175+ < m-example-code [code] ="invertedCode " />
176176 < ng-container >
177177 < m-modal *ngIf ="showInverted " header ="Inverted " inverted (close) ="showInverted = false ">
178178 The colors are inverted
@@ -182,7 +182,7 @@ <h2 m-header dividing>Content</h2>
182182 </ m-example >
183183
184184 < m-example header ="Loading " description ="A modal can have a spinner ">
185- < m-example-code [code] ="loadingCode "/>
185+ < m-example-code [code] ="loadingCode " />
186186 < ng-container >
187187 < m-modal *ngIf ="showLoading " header ="Loading... " loading (close) ="showLoading = false ">
188188 Some content
@@ -238,8 +238,20 @@ <h2 m-header dividing>Content</h2>
238238 </ ng-container >
239239 < m-button (click) ="showChangeIcon = true "> Show with changed Item</ m-button >
240240 </ m-example >
241+
242+ < m-example header ="Grow Only " description ="The modal can grow based on its content but can not shrink " [code] ="growOnlyCode ">
243+ < m-button (click) ="showGrowOnly = true "> Show</ m-button >
244+ < m-modal *ngIf ="showGrowOnly " growOnly header ="I grow only " (close) ="showGrowOnly = false ">
245+ < m-flex gap ="1rem ">
246+ < m-button primary (click) ="grow() "> Grow</ m-button >
247+ < m-button primary [disabled] ="growOnlyRows <= 0 " (click) ="shrink() "> Shrink</ m-button >
248+ </ m-flex >
249+ < p > Click button to grow modal!</ p >
250+ < p *ngFor ="let number of growOnlyRows | mArray "> BIGGER {{ number + 1 }}!</ p >
251+ </ m-modal >
252+ </ m-example >
241253 </ m-tab >
242- < m-tab label ="Binding ">
243- <!-- TODO -->
244- </ m-tab >
254+ <!-- < m-tab label="Binding">-- >
255+ <!-- TODO -->
256+ <!-- < /m-tab>-- >
245257</ m-tab-group >
0 commit comments