diff options
Diffstat (limited to 'components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts')
-rw-r--r-- | components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts | 45 |
1 files changed, 37 insertions, 8 deletions
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts b/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts index 4e934bc8..c5f90d22 100644 --- a/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts +++ b/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts @@ -1,15 +1,44 @@ -import { Component, OnInit } from '@angular/core'; +/* + * ============LICENSE_START======================================================= + * ONAP : DataLake + * ================================================================================ + * Copyright 2019 QCT + *================================================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +/** + * + * @author Ekko Chang + * + */ +import { Component, OnInit, Input } from "@angular/core"; @Component({ - selector: 'app-card', - templateUrl: './card.component.html', - styleUrls: ['./card.component.css'] + selector: "app-card", + templateUrl: "./card.component.html", + styleUrls: ["./card.component.css"] }) export class CardComponent implements OnInit { + @Input() title: string; + @Input() iconPath: string; + @Input() content: string; + @Input() subcontent: string; + @Input() modifiable: boolean; + @Input() iconSize: string[] = ["sm", "md", "lg"]; - constructor() { } - - ngOnInit() { - } + constructor() {} + ngOnInit() {} } |