0.0.160 • Published 2 years ago

ng-ad-ui v0.0.160

Weekly downloads
98
License
-
Repository
github
Last release
2 years ago

AD-UI npm version npm downloads

Easy to use Angular2 directives for files upload (demo)

Angular 2 Style Guide

Quick start

  1. A recommended way to install ad-ui is through npm package manager using the following command:

    npm i ng-ad-ui --save

Using ad-ui in a project

  1. Install as shown in the above section.

  2. Import AdUiModule into the module that declares the component using ad-ui:

    import { AdUiModule } from 'ad-ui';

    you can also import the component you need from the specify module like this:

    import { AdUiTreeComponent } from 'ad-ui';

  1. Add it to [imports] under @NgModule:

    imports: [ ... AdUiModule, ... ]

API for AdUiTreeComponent

Properties

  • option - (AdTreeOption) - AdTreeOption object.

    url : string; 后台接口地址

    headers? : {key: string: any;} 传给后台的header

    additionParams? : {key: string: any;} 额外传给后台的参数

    ajaxFilterFn? : (data:any[])=>NzTreeNodeOptions[] 异步加载子节点后格式数据的方法

    additionRootData? : any[] 额外添加跟节点数据

    rootId? : string | number 根节点id

    formatDataFn? : (data:any)=>NzTreeNodeOptions[] 初始化后台返回的数据的方法

    api? : any 映射的treecomonent里的方法

    data? : any[] 树节点数据

    enableCheck? : boolean 是否显示checkbox

API for AdScrollBoxComponent

Properties

  • option

    @Input() datas : any[]; 数据集合

    @Input() scrollBoxTemplateDiy? : TemplateRef<{ $implicit: any}>; 自定义模版

    @Output() clickBoxEvent : EventEmitter; 点击节点事件

0.0.160

2 years ago

0.0.171

2 years ago

0.0.170

3 years ago

0.0.159

3 years ago

0.0.158

3 years ago

0.0.157

3 years ago

0.0.156

3 years ago

0.0.155

3 years ago

0.0.151

3 years ago

0.0.150

3 years ago

0.0.146

3 years ago

0.0.145

3 years ago

0.0.142

4 years ago

0.0.141

4 years ago

0.0.140

4 years ago

0.0.130

4 years ago

0.0.124

4 years ago

0.0.122

4 years ago

0.0.121

4 years ago

0.0.120

4 years ago

0.0.118

4 years ago

0.0.116

4 years ago

0.0.115

4 years ago

0.0.114

4 years ago

0.0.112

4 years ago

0.0.111

4 years ago

0.0.1

4 years ago