0.4.0 • Published 5 years ago

mta-periodic-table v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

PeriodicTable

Travis (.com) GitHub npm

UI is from https://github.com/FlorianFe/Elements

Dev environment is from ng-zorro-antd

Quick start

$ npm install mta-periodic-table -S
// app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { MtaPeriodicTableModule } from 'mta-periodic-table';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MtaPeriodicTableModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Input params

@Input() isShowElDetail: boolean // 是否展示元素详情, default: true
@Input() maxSelect: number; // 最大可以选择元素的个数
@Input() canSelectElements: string[]; // 关联可以选择的元素string[],例['h', 'li', 'be']
<mta-periodic-table></mta-periodic-table>

See details

Development

$ git clone https://github.com/matai-tech/periodic-table.git
$ cd periodic-table
$ npm install
$ npm run start
0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago