1.0.0 • Published 4 years ago

universal-background v1.0.0

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

universal-background npm

Dynamic setting window background color and so on.

Support

Install

$ npm install universal-background --save

Methods

setColor(options)

Dynamically sets the background color of the window.

Parameters

PropertyTypeDefaultRequiredDescriptionSupport
colorString-xThe background color of the window must be a hexadecimal color value
topColorString-xBackground color of top window, must be hexadecimal color value, supported by iOS only
bottomColorString-xBottom window background color, must be hexadecimal color value, iOS only support

setTextStyle(options)

Dynamic Settings drop - down background font, loading map style.

Parameters

PropertyTypeDefaultRequiredDescriptionSupport
styleStringDrop down background font, loading diagram style, value: dark, light

Example

import Background from 'universal-background';

Background.setColor({
    color: #000000,
    success: res => {
    },
    fail: res => {
    }
});

Background.setTextStyle({
    style: 'dark', // The text color of the drop-down loading page is dark
    success: res => {
    },
    fail: res => {
    }
});
1.0.0

4 years ago

1.0.0-beta.1

4 years ago