npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wynn-select-receiver

v1.1.7

Published

自定义元素(Web Elements) wynn-select-receiver 的源代码。

Downloads

5

Readme

Wynn Select Receivers

自定义元素(Web Elements) wynn-select-receiver 的源代码。

测试

app.module.ts 文件的 bootstrap 加上 TestComponent,运行 ng serve --open --port 4201 可以在 http://localhost:4201 看到测试效果。

Build

编译之前去掉 app.module.ts 文件中 bootstrap 中的 TestComponent。执行 ng build 编译项目,输出文件在 dist/ 目录下。

dist/ 文件夹下有一个 test.html 可以用来测试编译过后的代码。

使用

安装

执行 npm install wynn-select-receiver

引入(原生项目中使用)

  <link href="wynn-select-receivers/styles.css" rel="stylesheet">
  <script src="wynn-select-receivers/main.js"></script>
  <script src="wynn-select-receivers/polyfills.js"></script>
  <script src="wynn-select-receivers/runtime.js"></script>
  <script src="wynn-select-receivers/vendor.js"></script>

必要的配置

属性|内容 --|:--: options|配置 contacts|单个联系人 contactGroups|联系人组

options 中的必填配置

字段名称|内容 ---|:--:|---: type | 'email'、'phone'、'QQ' 三选一,代表联系人的类型 primaryKey | 联系人的唯一标识 display | 用于展示的字段 valueKey | 内容字段 groupPrimaryKey | 联系人组的唯一标识

options 中的可选配置:languages

      languages: {
        dialogTitle: '选择收信人',
        search: '搜索',
        cancelButton: '取消',
        OkButton: '确定',
        personTitle: '联系人',
        createPerson: '新建联系人',
        deletePerson: '删除联系人',
        personNameField: '备注',
        personValueField: '邮箱地址',
        groupTitle: '联系人组',
        createGroup: '新建联系人组',
        deleteGroup: '删除联系人组',
        groupNameFiled: '组名称',
        groupMemberFiled: '组成员',
        selectPersons: '选择组成员',
        repeatTip: '已存在',
        invalidTip: '无效'
 }

method

done

选好所需的联系人之后点击确定触发。

personCreated

新建单个联系人触发。

personUpdated

编辑单个联系人触发。

personDeleted

删除单个联系人触发。

groupCreated

创建联系人组触发。

groupUpdated

编辑联系人组触发。

groupDeleted

删除联系人组触发。