Usage
Signature:
interface CDrawerLayoutElement
Typescript Import Format
//To typecheck the element APIs, import as below.
import { CDrawerLayoutElement } from "oj-c/drawer-layout";
//For the transpiled javascript to load the element's module, import as below
import "oj-c/drawer-layout";
For additional information visit:
Note: Application logic should not interact with the component's properties or invoke its methods until the BusyContext indicates that the component is ready for interaction.
Slots
JET components that allow child content support slots. Please see the slots section of the JET component overview doc for more information on allowed slot content and slot types.
-
Default
-
The default slot is the content of the Drawer Popup.
-
bottom
-
The content node to be shown within the Bottom Drawer
-
end
-
The content node to be shown within the End Drawer
-
start
-
The content node to be shown within the Start Drawer
Attributes
-
bottom-display :"auto"|"overlay"|"reflow"
-
Specifies display mode of the Bottom drawer.
- Default Value:
'auto'
Names
Item Name Property bottomDisplayProperty change event bottomDisplayChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-bottom-display-changed -
bottom-opened :boolean
-
Specifies whether the Bottom drawer is open.
- Default Value:
false
- Supports writeback:
true
Names
Item Name Property bottomOpenedProperty change event bottomOpenedChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-bottom-opened-changed -
end-display :"auto"|"overlay"|"reflow"
-
Specifies display mode of the Start drawer.
- Default Value:
'auto'
Names
Item Name Property endDisplayProperty change event endDisplayChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-end-display-changed -
end-opened :boolean
-
Specifies whether the End drawer is open.
- Default Value:
false
- Supports writeback:
true
Names
Item Name Property endOpenedProperty change event endOpenedChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-end-opened-changed -
start-display :"auto"|"overlay"|"reflow"
-
Specifies display mode of the Start drawer.
- Default Value:
'auto'
Names
Item Name Property startDisplayProperty change event startDisplayChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-start-display-changed -
start-opened :boolean
-
Specifies whether the Start drawer is open.
- Default Value:
false
- Supports writeback:
true
Names
Item Name Property startOpenedProperty change event startOpenedChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-start-opened-changed
Events
-
ojBeforeClose
-
Note: The event detail contains the following properties: oj-c.DrawerLayout.OnCloseDetail
Triggered immediately before the drawer closes. Callevent.preventDefault()in the event listener to veto the event synchronously, which prevents the drawer from closing. Callevent.detail.accept(Promise.reject());in the event listener to veto the event asynchronously, which prevents the drawer from closing.See Events and Listeners for additional information.
-
ojClose
-
Note: The event detail contains the following properties: oj-c.DrawerLayout.OnTransitionEndDetail
Triggered immediately after the drawer closes.See Events and Listeners for additional information.
Methods
-
getProperty(property) : {any}
-
Retrieves the value of a property or a subproperty.
Parameters:
Name Type Description propertystring The property name to get. Supports dot notation for subproperty access. Returns:
- Type
- any
-
setProperties(properties) : {void}
-
Performs a batch set of properties.
Parameters:
Name Type Description propertiesobject An object containing the property and value pairs to set. Returns:
- Type
- void
-
setProperty(property, value) : {void}
-
Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.
Parameters:
Name Type Description propertystring The property name to set. Supports dot notation for subproperty access. valueany The new value to set the property to. Returns:
- Type
- void
Type Definitions
Documentation-only Types
Note: Type definitions in this section have been provided for documentation purposes and cannot be imported into application code.
-
OnCloseDetail
-
Properties:
Name Type Description accept(acceptPromise:Promise<void>) => void This method can be called with an application-created Promise to cancel this event asynchronously. The Promise should be resolved or rejected to accept or cancel the event, respectively. edge"end" | "start" | "bottom" edge from which the drawer slides into the layout. reason"escapeKey" reason for closing the drawer -
OnTransitionEndDetail
-
Properties:
Name Type Description edge"end" | "start" | "bottom" edge from which the drawer slides into the layout. valueboolean opened value