Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: modified table cell width and height in search container
I tried to modified table cell width and height in search container
<liferay-ui:search-container total="<%=vend.getVendersCount(themeDisplay.getScopeGroupId()) %>" delta="5" rowChecker="<%=new RowChecker(renderResponse) %>">
<liferay-ui:search-container-results results="<%=vend.getVenders(themeDisplay.getScopeGroupId(),searchContainer.getStart(),
searchContainer.getEnd())%>" />
<liferay-ui:search-container-row cssClass="search-container" className="com.sb.smartmarket.model.Vender" modelVar="ssss"
escapedModel="<%= true %>" indexVar="indexNumber" rowVar="curRow" keyProperty="venderId">
<liferay-ui:search-container-column-text property="companyName" name="Company Name"/>
<liferay-ui:search-container-column-text property="industry" name="Industry Name"/>
<liferay-ui:search-container-column-text property="companySize" name="Company Size"/>
<liferay-ui:search-container-column-text property="address" name="Company Address"/>
<liferay-ui:search-container-column-date property="relationDate" name="Relation Date"/>
<liferay-ui:search-container-column-text value="<%=relationDateString %>" name="Company Address"/>
<liferay-ui:search-container-column-jsp path="/smart_market/venderAction.jsp" align="right" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
.search-container td{ height: 50px;width: 40px;
}Could anyone tell me how to modified table cell width and height in search container?
Thanks
MoKham
<liferay-ui:search-container total="<%=vend.getVendersCount(themeDisplay.getScopeGroupId()) %>" delta="5" rowChecker="<%=new RowChecker(renderResponse) %>">
<liferay-ui:search-container-results results="<%=vend.getVenders(themeDisplay.getScopeGroupId(),searchContainer.getStart(),
searchContainer.getEnd())%>" />
<liferay-ui:search-container-row cssClass="search-container" className="com.sb.smartmarket.model.Vender" modelVar="ssss"
escapedModel="<%= true %>" indexVar="indexNumber" rowVar="curRow" keyProperty="venderId">
<liferay-ui:search-container-column-text property="companyName" name="Company Name"/>
<liferay-ui:search-container-column-text property="industry" name="Industry Name"/>
<liferay-ui:search-container-column-text property="companySize" name="Company Size"/>
<liferay-ui:search-container-column-text property="address" name="Company Address"/>
<liferay-ui:search-container-column-date property="relationDate" name="Relation Date"/>
<liferay-ui:search-container-column-text value="<%=relationDateString %>" name="Company Address"/>
<liferay-ui:search-container-column-jsp path="/smart_market/venderAction.jsp" align="right" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
.search-container td{ height: 50px;width: 40px;
}Could anyone tell me how to modified table cell width and height in search container?
Thanks
MoKham
Hi ,
I tried the code u have shared and it is updating the height and width of the cell, below is my code (Liferay 7.3.4 GA5)
You can try adding !important also , if in case above codes doesn't work for you .
I tried the code u have shared and it is updating the height and width of the cell, below is my code (Liferay 7.3.4 GA5)
<%
int userCount = UserLocalServiceUtil.getUsersCount();
%>
<liferay-ui:search-container total="<%=userCount %>" delta="5" rowchecker="<%=new RowChecker(renderResponse) %>">
<liferay-ui:search-container-results results="<%=UserLocalServiceUtil.getUsers(searchContainer.getStart(), searchContainer.getEnd())%>" />
<liferay-ui:search-container-row cssclass="search-container" classname="com.liferay.portal.kernel.model.User" modelvar="userTemp" escapedmodel="<%= true %>" indexvar="indexNumber" rowvar="curRow" keyproperty="userId">
<liferay-ui:search-container-column-text property="userId" name="User Id" />
<liferay-ui:search-container-column-text property="firstName" name="First Name" />
<liferay-ui:search-container-column-text property="lastName" name="Last Name" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
<style>
.search-container td{
height: 50px;width: 40px ;
}
</style>
You can try adding !important also , if in case above codes doesn't work for you .
<style>
.search-container td{
height: 50px !important;
width: 40px !important;
}
</style>
Thanks,
Mohammed
Mohammed