留言板

auto add collapsible panel not collapsed

thumbnail
Nitin Yeola,修改在9 年前。

auto add collapsible panel not collapsed

Junior Member 帖子: 64 加入日期: 14-1-16 最近的帖子
Hello,

I am designing configuration for one of my portlet .
I have auto generated collapsible panel in add button of auto add controls of aui.

when I add collapsible panel using add button when collapsible panel is not expanded then it will add panel but the newly added panel is not expanding.

can anybody have idea on this?

regards,
Nitin
thumbnail
Nitin Yeola,修改在9 年前。

RE: auto add collapsible panel not collapsed

Junior Member 帖子: 64 加入日期: 14-1-16 最近的帖子
<aui:fieldset cssclass="subscriptions">
			<aui:input name="preferences--showProductDropDown--" type="checkbox" value="<%= showProductDropDownBox %>" />
			
						&lt;% 
						if (urls.length == 0) {
							urls = new String[1];
							urls [0] = StringPool.BLANK;
							}

						for (int i = 0; i &lt; urls.length; i++) {
							String title = StringPool.BLANK;

							if (i &lt; titles.length) {
								title = titles[i];
							}
							
							%&gt;
							
							<div class="lfr-form-row lfr-form-row-inline">
								<div class="row-fields">
								<liferay-ui:panel-container extended="<%= true %>" id="<%=&quot;jsonFeedsSettings&quot;+i+&quot;PanelContainer&quot;%>" persiststate="<%= true %>" accordion="true">
								<liferay-ui:panel collapsible="false" extended="false" id="<%=&quot;jsonFeedsSettings&quot;+i+&quot;Panel&quot;%>" persiststate="<%= true %>" title="<%= title %>">
								
									&lt;%if(showProductDropDownBox){%&gt;
									<b>Product Filter Details:</b>	
									&lt;%for(int temp=1;temp<productlist.length;temp++){ string preparepreferencekey="title.replaceAll(&quot;-&quot;," "").replaceall("'", "").replaceall(" ","").trim()+""+productlist[temp].replaceall("-", ","").trim(); tabproductmappingvalue="preferences.getValue(preparePreferenceKey," ""); %>
									
										<aui:input type="text" style="width:90%;" size="500" label="<%= productList[temp]%>" name="<%= productList[temp] + i %>" value="<%=tabProductMappingValue%>" />
										
									
									 &lt;%}}%&gt;
								
								</productlist.length;temp++){></liferay-ui:panel>
								</liferay-ui:panel-container>
								</div>
							</div>
						
						&lt;%
						}
						%&gt;

					</aui:fieldset>
			

			<aui:button-row>
				<aui:button onClick="<%= renderResponse.getNamespace() + &quot;saveSettings();&quot; %>" type="submit" />
			</aui:button-row>


<aui:script>
	document.<portlet:namespace />fm
</aui:script>

<aui:script>
function <portlet:namespace />saveSettings() {
		document.<portlet:namespace />fm.<portlet:namespace />&lt;%= Constants.CMD %&gt;.value = '&lt;%= Constants.UPDATE %&gt;';
		submitForm(document.<portlet:namespace />fm, '&lt;%= configurationActionURL.toString() %&gt;');
	}
</aui:script>

<aui:script use="liferay-auto-fields">
	new Liferay.AutoFields(
		{
			contentBox: 'fieldset.subscriptions',
			fieldIndexes: '<portlet:namespace />subscriptionIndexes'
		}
	).render();
</aui:script>




This my code can anybody help me on this issue?

Please it's urgent

thanks in advanced

Nitin