Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
getme
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amal
getme
Commits
49001fd8
Commit
49001fd8
authored
Dec 06, 2019
by
amal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'amal' into 'master'
Amal See merge request
!39
parents
b36b68d7
b8de7716
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
5 deletions
+42
-5
home.page.html
src/app/home/home.page.html
+3
-1
home.page.ts
src/app/home/home.page.ts
+1
-1
searchmodal.page.html
src/app/searchmodal/searchmodal.page.html
+29
-2
searchmodal.page.ts
src/app/searchmodal/searchmodal.page.ts
+9
-1
No files found.
src/app/home/home.page.html
View file @
49001fd8
...
...
@@ -5,7 +5,9 @@
</ion-menu-toggle>
<div
class=
"nav_title floatLeft relative"
>
<input
class=
"search_bar"
placeholder=
"Search here.. eg:shirts, retailers etc..."
(
click
)="
clickSearch
()"
(
input
)="
searchFun
($
event
.
target
.
value
)"
#
searchText
>
<!-- <input class="search_bar" placeholder="Search here.. eg:shirts, retailers etc..." (click)="clickSearch()" (input)="searchFun($event.target.value)" #searchText> -->
<input
class=
"search_bar"
placeholder=
"Search here.. eg:shirts, retailers etc..."
(
click
)="
searchModal
()"
>
</div>
<button
class=
"nav_btn nav_search floatRight"
*
ngIf=
"!searchShow"
>
...
...
src/app/home/home.page.ts
View file @
49001fd8
...
...
@@ -165,7 +165,7 @@ export class HomePage implements OnInit {
this
.
searchService
.
search
(
data
);
}
async
open
Modal
()
{
async
search
Modal
()
{
const
modal
=
await
this
.
modalController
.
create
({
component
:
SearchmodalPage
});
...
...
src/app/searchmodal/searchmodal.page.html
View file @
49001fd8
<h1>
Search modal
</h1>
\ No newline at end of file
<div
class=
"nav_header"
>
<button
class=
"nav_btn nav_back floatLeft"
(
click
)="
closeModal
()"
>
</button>
<div
class=
"nav_title floatLeft relative"
>
<input
class=
"search_bar"
placeholder=
"Search here.. eg:shirts, retailers etc..."
>
</div>
<button
class=
"nav_btn nav_close floatRight"
(
click
)="
closeModal
()"
>
</button>
<div
class=
"clear"
></div>
</div>
<div
class=
"search_item_list"
>
<ul>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
<li>
Item
</li>
</ul>
</div>
\ No newline at end of file
src/app/searchmodal/searchmodal.page.ts
View file @
49001fd8
import
{
Component
,
OnInit
}
from
"@angular/core"
;
import
{
ModalController
,
NavParams
}
from
"@ionic/angular"
;
@
Component
({
selector
:
"app-searchmodal"
,
...
...
@@ -6,7 +7,14 @@ import { Component, OnInit } from "@angular/core";
styleUrls
:
[
"./searchmodal.page.scss"
]
})
export
class
SearchmodalPage
implements
OnInit
{
constructor
()
{}
constructor
(
private
modalController
:
ModalController
,
private
navParams
:
NavParams
)
{}
ngOnInit
()
{}
async
closeModal
()
{
await
this
.
modalController
.
dismiss
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment