Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

universal-background

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-background

Dynamic setting window background color and so on.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

universal-background npm

Dynamic setting window background color and so on.

Support

miniApp wechatMiniprogram

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 valueminiApp wechatMiniprogram
topColorString-xBackground color of top window, must be hexadecimal color value, supported by iOS onlyminiApp wechatMiniprogram
bottomColorString-xBottom window background color, must be hexadecimal color value, iOS only supportminiApp wechatMiniprogram

setTextStyle(options)

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

Parameters
PropertyTypeDefaultRequiredDescriptionSupport
styleStringDrop down background font, loading diagram style, value: dark, lightminiApp wechatMiniprogram

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 => {
    }
});

Keywords

FAQs

Package last updated on 16 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc