Element: <oj-select-single-placeholder>

Oracle® JavaScript Extension Toolkit (JET)
19.0.0

G25385-01

Since:
  • 19.0.0
Module:
  • ojselectsingleplaceholder

QuickNav

Attributes


JET Select Single Placeholder

Description: A custom element that renders a placeholder for a SelectSingle. This should only be used in a data-cell in "Navigation" mode within a DataGrid template.

// Placeholder for a single select component within an oj-bind-if within a DataGrid template
<oj-bind-if test='[[cell.mode=="navigation"]]'>
  <oj-select-single-placeholder on-oj-dropdown-icon-action="[[downArrowIconClick]]"
    value="[[cell.item.data.data]]">
  </oj-select-single-placeholder>
</oj-bind-if>


Usage

Signature:

interface SelectSinglePlaceholderElement

Typescript Import Format
//To typecheck the element APIs, import as below.
import { SelectSinglePlaceholderElement } from "ojs/ojselectsingleplaceholder";

//For the transpiled javascript to load the element's module, import as below
import "ojs/ojselectsingleplaceholder";

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.


Attributes

value :string|null

The display text of the value.
Default Value:
  • null
Names
Item Name
Property value
Property change event valueChanged
Property change listener attribute (must be of type function, see Events and Listeners for additional information.) on-value-changed

Events

ojDropdownIconAction

Triggered when the dropdown icon is clicked, whether by mouse, or touch events.

Methods

getProperty(property) : {any}

Retrieves a value for a property or a single subproperty for complex properties.
Parameters:
Name Type Description
property string 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
properties Object 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 [property]Changed event.
Parameters:
Name Type Description
property string The property name to set. Supports dot notation for subproperty access.
value any The new value to set the property to.
Returns:
Type
void