From d55025cb2f8c06c08676719b67a53fa48442d1e9 Mon Sep 17 00:00:00 2001 From: Ezhilarasi Date: Thu, 25 Jul 2019 12:19:31 +0530 Subject: Search mat card display Create blueprint search from db matcard Change-Id: I411035385930f5637c84426c7b32c20c219aab73 Issue-ID: CCSDK-1275 Signed-off-by: Ezhilarasi --- .../search-from-database.component.html | 29 +++++++++++++---- .../search-from-database.component.scss | 38 +++++++++++++++++++++- .../search-from-database.component.ts | 21 ++++++------ 3 files changed, 70 insertions(+), 18 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.html b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.html index 11c2ff0b6..a3c287254 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.html @@ -21,11 +21,26 @@ limitations under the License.
- - - - {{option.tags}} - - + + -
\ No newline at end of file + + + + + + {{option}} + + + + + + + + \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.scss b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.scss index 93f5c9dea..6692764ae 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.scss +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.scss @@ -17,4 +17,40 @@ 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============================================ -*/ \ No newline at end of file +*/ + +.example-card { + min-width: 150px; + max-height: 150px; + background-color: #ebebeb; +} + +button.mat-menu-item { + width: auto; + float: left; + // margin-top: 10px; + // margin-bottom: 5px; + border-radius: 4px; + // min-width: 6em; + background-color: #3f51b5; + margin: 1px; + // padding: 1px; + cursor: pointer; + color: white; +} + +.card-deck-container { + position: relative; + border-radius: 1px; + padding: 2px; + margin: 2px; + // background-color: #f5f5f5; +} + +.grid-container { + margin: 20px; +} + +.card-content { + text-align: center; +} \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts index a14508670..5ae1850cc 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts @@ -50,16 +50,17 @@ export class SearchFromDatabaseComponent implements OnInit { } fetchResourceByName() { - this.existingModelService.searchByTags("/searchByTags/",this.searchText) - .subscribe(data=>{ - console.log(data); - data.forEach(element => { - this.options.push(element) - }); - this.resourceSelect.openPanel(); - }, error=>{ - window.alert('error' + error); - }) + // this.existingModelService.searchByTags("/searchByTags/",this.searchText) + // .subscribe(data=>{ + // console.log(data); + // data.forEach(element => { + // this.options.push(element) + // }); + // this.resourceSelect.openPanel(); + // }, error=>{ + // window.alert('error' + error); + // }) + this.options=['test','vns','capability','hello','hi','hoi','dfagfagshdgfashdf','adsfhksd']; } } -- cgit 1.2.3-korg