Các component dùng chung - sử dụng nội bộ
npm install dps-libThis library was generated with Angular CLI version 8.2.14.
Run ng generate component component-name --project dps-lib to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project dps-lib.
> Note: Don't forget to add --project dps-lib or else it will be added to the default project in your angular.json file.
Run ng build dps-lib to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with ng build dps-lib, go to the dist folder cd dist/dps-lib and run npm publish.
Run ng test dps-lib to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
Có thể sử dụng như form control
``javascript`
import { DropdownTreeModule } from 'dps-lib';
>
Có thể sử dụng như form control
- 20/02/18 Thêm trường FieldDisable cho từng item trên dropdown tree để có thể tùy biến ẩn hiện chức năng chọn
`javascript`
import { ImageControlModule } from 'dps-lib';
>
javascript
import { DatetimePickerModule } from 'dps-lib';
`
- 20/03/03 - release datetime picker control
- output: selectionChange
- input: placeholder - hint - required - disabled
>Dynamic Component
`javascript
import { DynamicComponentModule } from 'dps-lib';
`
- 20/05/12 - release Dynamic Component module
- output: getInstance: trả về instance để có thể gọi hàm của child component
- input: childComponentType, data
>Dynamic form
`javascript
import { DynamicFormModule } from 'dps-lib';
export function getHTTPHeaders() {
let _httpUtils = new HttpUtilsService(new TokenStorage());
return _httpUtils.getHTTPHeaders();
}
@NgModule({
imports: [
DynamicFormModule.forRoot(environment, getHTTPHeaders)
]
})
``