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

@gspwidget/portlet

v1.6.0

Published

开箱即用的 iGIX 小部件组件,传入 **部件 id** 来渲染部件。

Downloads

20

Readme

Portlet | 小部件

开箱即用的 iGIX 小部件组件,传入 部件 id 来渲染部件。

此包封装了部件服务数据读取等业务细节。若要脱离 部件概念,仅使用 元部件,应改用 @gspwidget/widget-core,仅封装了元部件加载机制、元部件 API 等,可实现更细粒度控制。

使用

  1. 安装:
npm i @gspwidget/portlet
  1. 引入 PortletModule:
import { PortletModule } from '@gspwidget/portlet';

@NgModule({
  imports: [
    PortletModule
  ]
})
export class YourModule {}
  1. 渲染 id 为 portletId 的部件:
<lib-portlet
  [portletId]="portletId"
  >
</lib-portlet>

API

lib-portlet

| 属性 | 类型 | 描述 | 默认值 | | ------------------------- | ----------------------- | ------------------------------------------------------ | ------------------------------------------------------ | | [portletId] | string | 指定当前部件 id。portletIdportlet 选一个必填。 | - | | [portlet] | EppPortlet | 指定当前部件。portletIdportlet 选一个必填。 | - | | [queryConditions] | QueryCondition[] | Farris 筛选方案输出的筛选条件。可选。 | - | | [portletNamesUsingDemoData] | string[] | 部件名称包含哪些字符时,使用演示数据。可选。 | [] | | [getCustomizedData] | () => Observable<any[]> | 若传入,则使用此方法返回的 Observable 对象作为部件接收的数据来源。可选。 | - |

| 事件 | 参数 | 描述 | | ---- | ---- | -------------------------------- | | init | 无 | 元部件加载、组件动态创建完成事件 |