MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / requestAnimationAndFocus

Function requestAnimationAndFocus

web/pgadmin/static/js/utils.js:575–582  ·  view source on GitHub ↗
(ele)

Source from the content-addressed store, hash-verified

573
574/* Usefull in focussing an element after it appears on the screen */
575export function requestAnimationAndFocus(ele) {
576 if(!ele) return;
577
578 const animateId = requestAnimationFrame(()=>{
579 ele?.focus?.();
580 cancelAnimationFrame(animateId);
581 });
582}
583
584const CHART_THEME_COLORS = {
585 'light':['#1F77B4', '#FF7F0E', '#2CA02C', '#D62728', '#9467BD', '#8C564B',

Callers 2

DataGridFormHeaderFunction · 0.90
DataGridHeaderFunction · 0.90

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected