从sapui5中的卡控件按事件或导航
我用卡片来显示一些数据。我想在sapui5中的卡控件上调用一些函数从sapui5中的卡控件按事件或导航,sapui5,Sapui5,我用卡片来显示一些数据。我想在sapui5中的卡控件上调用一些函数 <f:Card class="sapUiMediumMargin carousalCards" width="360px"> <f:content> <VBox height="370px" justifyContent="SpaceBetween"> <HBox justifyContent="SpaceBetween">
<f:Card class="sapUiMediumMargin carousalCards" width="360px">
<f:content>
<VBox height="370px" justifyContent="SpaceBetween">
<HBox justifyContent="SpaceBetween">
<VBox>
<Title class="titleWidth" text="{getfileDefaultJSONModel>REFERENCE}" level="H1"/>
<Text class="sapMGTSubHdrTxt" text="{getfileDefaultJSONModel>CREATION_DATE}"></Text>
</VBox>
<HBox class="checkedIcon">
<RadioButton custom:model="getfileDefaultJSONModel" select="fnCreateClone" text="{getfileDefaultJSONModel>ID}" groupName="GroupA" visible="{getfileDefaultJSONModel>RADIO_VISIBLE}"/>
</HBox>
</HBox>
<HBox justifyContent="SpaceBetween" class="largeTileFooter">
<Text class="sapMTileCntFtrTxt" text="{getfileDefaultJSONModel>USER_ID} {getfileDefaultJSONModel>REFERENCE} Data"></Text>
<Text class="sapMNCValue Neutral" text="{getfileDefaultJSONModel>JSON_SIZE}"></Text>
</HBox>
</VBox>
</f:content>
</f:Card>
目前,
sap.f.Card
没有任何点击事件。但是,您可以使用浏览器事件:
var card = this.getView().byId("your-card-id");
card.attachBrowserEvent("click", function(event) {
// handle card click
}, this);
目前,sap.f.Card
没有任何点击事件。但是,您可以使用浏览器事件:
var card = this.getView().byId("your-card-id");
card.attachBrowserEvent("click", function(event) {
// handle card click
}, this);
撰写本文时,sap.f.Card
未提供任何新闻事件。你可以
- 遵循指导原则,只允许点击标题。实现
sap.f.cards.IHeader的控件提供press
事件
- 或者利用
sap.m.CustomListItem
和type=“Active”
使卡片内容可点击
请参见下面的演示:
sap.ui.getCore().attachInit(()=>sap.ui.require([
“sap/ui/core/Fragment”,
],Fragment=>Fragment.load({
定义:`
`,
})。然后(control=>control.placeAt(“内容”))代码>
在撰写本文时,sap.f.Card
不提供任何新闻事件。你可以
- 遵循指导原则,只允许点击标题。实现
sap.f.cards.IHeader的控件提供press
事件
- 或者利用
sap.m.CustomListItem
和type=“Active”
使卡片内容可点击
请参见下面的演示:
sap.ui.getCore().attachInit(()=>sap.ui.require([
“sap/ui/core/Fragment”,
],Fragment=>Fragment.load({
定义:`
`,
})。然后(control=>control.placeAt(“内容”))代码>