New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

saber-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saber-button

SaberUI的Button控件

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

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

saber-button

SaberUI的Button控件。ECOM UI v1.1规范实现。

Dependencies

Usage

通过edp导入

edp import saber-button

API

Option

  • content: 按钮显示文字

更多配置项,请参考父类Control

Property

content

按钮显示文字,类型String,默认值''

例子

var button = new Button({ content: 'test' });
console.info( button.get( 'content' ) ); // test

更多实例属性,请参考父类Control

Method

.setContent(content)

设置按钮内容,可以是HTML内容

content: 要设置的按钮内容。类型String

例子

var button = new Button({ content: 'test' });
console.info( button.get( 'content' ) ); // test
button.setContent( 'new' );
console.info( button.get( 'content' ) ); // new

更多实例方法,请参考父类Control

Event

click

当按钮被点击后触发,附带参数依次为evevent:

ev: 事件信息对象

  • type: 事件类型名,类型String
  • target: 触发事件的按钮控件对象,类型Button

event: DOM原生事件对象

更多事件,请参考父类Control

===

Saber

FAQs

Package last updated on 10 Mar 2014

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