2017-12-17 28 views
0

나는이 속성을 사용하여 테이블을 사용하고 있습니다.SAPUI5 ColumnListItem, 왼쪽에 아이콘을 표시해야합니다.

<ColumnListItem type="Detail" detailPress="onShowItemEditDialog"> 

왼쪽에 아이콘을 넣고 싶습니다. 나는 respondivePopover를 사용하기 때문에 오른쪽에 팝업이 열리고 있습니다. 이 popover에서 테이블 요소를 변경한다고 생각합니다. 테이블의 요소를 변경하는 또 다른 방법이 있습니까? 표 편집을 위해 수행 할 수있는 작업은 무엇입니까? 도와주세요.

답변

0

:

<List headerText="Custom Content" mode="Delete" items="{path: '/ProductCollection'}" > 
    <CustomListItem> 
     <HBox> 
      <core:Icon size="2rem" src="sap-icon://attachment-photo" class="sapUiSmallMarginBegin sapUiSmallMarginTopBottom" /> 
      <VBox class="sapUiSmallMarginBegin sapUiSmallMarginTopBottom" > 
       <Link text="{Name}" target="{ProductPicUrl}" press="handlePress"/> 
       <Label text="{ProductId}"/> 
      </VBox> 
     </HBox> 
    </CustomListItem> 
</List> 

이 예

는에서 가져옵니다. 아래 코드를 적절히 사용하십시오.

onAfterRendering: function() { 
    $("thead .sapMListTblNavCol").insertAfter("thead .sapMListTblHighlightCol"); 
    $("tbody .sapMListTblNavCol").insertAfter("tbody .sapMListTblHighlightCell"); 
},