MCPcopy Index your code
hub / github.com/UI5/webcomponents / DropIndicator

Class DropIndicator

packages/main/src/DropIndicator.ts:28–157  ·  view source on GitHub ↗

* @class * * ### Overview * * ### Usage * * ### ES6 Module Import * * `import "@ui5/webcomponents/dist/DropIndicator.js";` * * @constructor * @extends UI5Element * @private

Source from the content-addressed store, hash-verified

26 * @private
27 */
28@customElement({
29 tag: "ui5-drop-indicator",
30 renderer: jsxRenderer,
31 styles: DropIndicatorCss,
32 template: DropIndicatorTemplate,
33})
34class DropIndicator extends UI5Element {
35 /**
36 * Element where the drop indicator will be shown.
37 *
38 * @public
39 * @default null
40 */
41 @property({ type: Object })
42 targetReference: HTMLElement | null = null;
43
44 /**
45 * Owner of the indicator and the target.
46 * @public
47 * @default null
48 */
49 @property({ type: Object })
50 ownerReference: HTMLElement | null = null;
51
52 /**
53 * Placement of the indicator relative to the target.
54 *
55 * @default "Before"
56 * @public
57 */
58 @property()
59 placement: `${MovePlacement}` = "Before";
60
61 /**
62 * Orientation of the indicator.
63 *
64 * @default "Vertical"
65 * @public
66 */
67 @property()
68 orientation: `${Orientation}` = "Vertical";
69
70 get _positionProperty() {
71 if (this.orientation === Orientation.Vertical) {
72 return "left";
73 }
74
75 return "top";
76 }
77
78 constructor() {
79 super();
80 }
81
82 onAfterRendering() {
83 if (!this.targetReference || !this.ownerReference) {
84 Object.assign(this.style, {
85 display: "none",

Callers

nothing calls this directly

Calls 2

customElementFunction · 0.85
propertyFunction · 0.85

Tested by

no test coverage detected