sap.ui.define(
[
"sap/m/StandardListItem",
"sap/m/StandardListItemRenderer",
"sap/ui/thirdparty/jqueryui/jquery-ui-core",
"sap/ui/thirdparty/jqueryui/jquery-ui-widget",
"sap/ui/thirdparty/jqueryui/jquery-ui-mouse",
"sap/ui/thirdparty/jqueryui/jquery-ui-sortable",
"sap/ui/thirdparty/jqueryui/jquery-ui-droppable",
"sap/ui/thirdparty/jqueryui/jquery-ui-draggable"
],
function(StandardListItem, StandardListItemRenderer) {
var DragDroplistItem = StandardListItem.extend("CSID.KPIDashboard2.controls.DragDroplistItem", {
renderer: StandardListItemRenderer,
onAfterRendering: function(args) {
if (StandardListItem.prototype.onAfterRendering) {
StandardListItem.prototype.onAfterRendering.apply(this, args);
}
this.$().draggable({
grid: [ 20, 20 ],
appendTo: "body",
containment: "window",
cursorAt: {left: 36, top: 36},
cursor: "move",
helper: function(e, ui) {
var $img = "https://experience.sap.com/fiori-design-web/wp-content/uploads/sites/5/2016/01/Thumbnail-Bar-Chart.png";
var $d = $("<div>");
$d.css({
"width": "72px",
"height": "72px",
"background-image": "url(" + $img + ")",
"background-repeat": "no-repeat",
"background-size": "72px 72px;"
});
return $d;
,
opacity: "0.5",
refreshPositions: true,
revert: "invalid",
revertDuration: 300,
zIndex: "1000000",
snap: true,
scroll: true
});
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
40 | |
25 | |
17 | |
13 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 |