用户偏好
一个 Dynatrace AppEngine SDK 库,允许获取当前登录的用户偏好,即日期时间、货币和数值的主题、语言和区域格式.
npm install @dynatrace-sdk/user-preferences
示例用途
import { getTheme } from '@dynatrace-sdk/user-preferences';
const theme = getTheme(); // 'auto' | 'dark' | 'light'
API 参考
参见 Dynatrace 开发者。 。 。 .