1.0.0 • Published 4 years ago
universal-background v1.0.0
universal-background
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
Property | Type | Default | Required | Description | Support |
---|---|---|---|---|---|
color | String | - | x | The background color of the window must be a hexadecimal color value | |
topColor | String | - | x | Background color of top window, must be hexadecimal color value, supported by iOS only | |
bottomColor | String | - | x | Bottom window background color, must be hexadecimal color value, iOS only support |
setTextStyle(options)
Dynamic Settings drop - down background font, loading map style.
Parameters
Property | Type | Default | Required | Description | Support |
---|---|---|---|---|---|
style | String | √ | Drop 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