예제 #1
0
 /// <summary>
 /// Opens the menu at the specified position.
 ///
 /// The position of the menu is defined relative to an element in the visible DOM by specifying the docking location of the menu and of the related element.
 ///
 /// See {@link sap.ui.core.Popup#open Popup#open} for further details about popup positioning.
 /// </summary>
 /// <param name="bWithKeyboard">Indicates whether or not the first item shall be highlighted when the menu is opened (keyboard case)</param>
 /// <param name="oOpenerRef">The element which will get the focus back again after the menu was closed</param>
 /// <param name="my">The reference docking location of the menu for positioning the menu on the screen</param>
 /// <param name="at">The 'of' element's reference docking location for positioning the menu on the screen</param>
 /// <param name="of">The menu is positioned relatively to this element based on the given dock locations</param>
 /// <param name="offset">The offset relative to the docking point, specified as a string with space-separated pixel values (e.g. "0 10" to move the popup 10 pixels to the right)</param>
 /// <param name="collision">The collision defines how the position of the menu should be adjusted in case it overflows the window in some direction</param>
 public extern virtual void open(bool bWithKeyboard, Union <sap.ui.core.Element, dom.HTMLElement> oOpenerRef, sap.ui.core.Dock my, sap.ui.core.Dock at, Union <sap.ui.core.Element, dom.HTMLElement> of, string offset, sap.ui.core.Collision collision);
예제 #2
0
 /// <summary>
 /// Sets a new value for property {@link #getCollision collision}.
 ///
 /// Optional. Collision - when the positioned element overflows the window in some direction, move it to an alternative position.
 ///
 /// When called with a value of <code>null</code> or <code>undefined</code>, the default value of the property will be restored.
 ///
 /// Default value is <code>flip</code>.
 /// </summary>
 /// <param name="sCollision">New value for property <code>collision</code></param>
 /// <returns>Reference to <code>this</code> in order to allow method chaining</returns>
 public extern virtual sap.ui.core.TooltipBase setCollision(sap.ui.core.Collision sCollision);