@openui5/sap.ui.core
Version:
OpenUI5 Core Library sap.ui.core
29 lines (24 loc) • 669 B
JavaScript
/*!
* OpenUI5
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define([], function() {
'use strict';
// Enum to handle the focus behavior, see Element#onfocusfail
const FocusMode = {
/**
* Synchronous focus mode: The focus should be applied immediately.
*/
"SYNC": "sync",
/**
* Rendering pending mode: The focus should be applied before the next rendering.
*/
"RENDERING_PENDING": "rendering_pending",
/**
* Default focus mode: Focus is deferred. Focus should be applied asynchronously.
*/
"DEFAULT": "default"
};
return FocusMode;
});