Search 如何在搜索容器中添加全选功能?
我想在我的搜索容器中有一个全选功能,如下所示: 这是我的搜索容器代码:Search 如何在搜索容器中添加全选功能?,search,liferay,containers,Search,Liferay,Containers,我想在我的搜索容器中有一个全选功能,如下所示: 这是我的搜索容器代码: <liferay-ui:search-container delta="5"> <%-- <c:choose> <c:when test=""> </c:when> <c:otherwise> </c:otherwise> </c:choose> --%> <liferay-ui:search-container-resu
<liferay-ui:search-container delta="5">
<%-- <c:choose>
<c:when test="">
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose> --%>
<liferay-ui:search-container-results
results="<%= RegUserAccountLocalServiceUtil.getRegUserAccounts(searchContainer.getStart(), searchContainer.getEnd()) %>"
total="<%= RegUserAccountLocalServiceUtil.getRegUserAccountsCount() %>"
/>
<liferay-ui:search-container-row
className="com.pmti.bir.triu.model.RegUserAccount"
keyProperty="acctId"
modelVar="aRegUserAccount" >
<liferay-ui:search-container-column-text>
<input name="rowChecker" type="checkbox" value="<%=aRegUserAccount.getAcctId()%>" />
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text
property="acctStatusFlag" name="STATUS"
orderable="<%=true %>"/>
<liferay-ui:search-container-column-text property="acctFirstName"
name="FULL NAME" orderable="<%= true %>"/>
<liferay-ui:search-container-column-text property="acctEmailAdd"
name="USERNAME" orderable="<%= true %>"/>
<liferay-ui:search-container-column-text property="acctBusinessName" name="POSITION" orderable="<%= true %>"
orderableProperty="acctLevelStatus"/>
<liferay-ui:search-container-column-text property="createdBy"
name="DIVISION" orderable="<%=true %>"/>
<liferay-ui:search-container-column-text property="acctUsername" name="USER TYPE" orderable="<%= true %>"
orderableProperty="acctUsername"/>
<liferay-ui:search-container-column-jsp
align="right"
path="/html/viewuseraccount/view_user_actions.jsp"
/>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
这就是它看起来的样子:
如何在搜索容器中实现全选?我不知道怎么做。请帮帮我。提前非常感谢!你好 您必须指定用于搜索容器标记的属性
e、 g.rowChecker=
您可以通过下面的示例代码获得所有选定的值
Liferay.Util.listCheckedExcept(document.<portlet:namespace />fm, "<portlet:namespace />allRowIds");
Liferay.Util.listCheckedExcept(document.fm,“allRowIds”);
非常感谢@Pankajkumar Kathiriya它现在像魔术一样工作了!:)^非常感谢。