On this page

Utility Methods

The panel-utils module encapsulates multiple utility methods for panel settings, such as screen adaptation, colors, numbers, time, strings, and temperature. You can use these methods to easily develop smart products.

How to get started

$ yarn add @ray-js/panel-sdk

# or

$ npm install @ray-js/panel-sdk

then

import { utils } from '@ray-js/panel-sdk';

utils.toFixed('111', 5); // '00111'