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
005b0ca0
Commit
005b0ca0
authored
Dec 06, 2019
by
amalk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search common modal executd in home page
parent
99de1a01
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 @
005b0ca0
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
</ion-menu-toggle>
</ion-menu-toggle>
<div
class=
"nav_title floatLeft relative"
>
<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>
</div>
<button
class=
"nav_btn nav_search floatRight"
*
ngIf=
"!searchShow"
>
<button
class=
"nav_btn nav_search floatRight"
*
ngIf=
"!searchShow"
>
...
...
src/app/home/home.page.ts
View file @
005b0ca0
...
@@ -165,7 +165,7 @@ export class HomePage implements OnInit {
...
@@ -165,7 +165,7 @@ export class HomePage implements OnInit {
this
.
searchService
.
search
(
data
);
this
.
searchService
.
search
(
data
);
}
}
async
open
Modal
()
{
async
search
Modal
()
{
const
modal
=
await
this
.
modalController
.
create
({
const
modal
=
await
this
.
modalController
.
create
({
component
:
SearchmodalPage
component
:
SearchmodalPage
});
});
...
...
src/app/searchmodal/searchmodal.page.html
View file @
005b0ca0
<h1>
Search modal
</h1>
<div
class=
"nav_header"
>
\ No newline at end of file
<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 @
005b0ca0
import
{
Component
,
OnInit
}
from
"@angular/core"
;
import
{
Component
,
OnInit
}
from
"@angular/core"
;
import
{
ModalController
,
NavParams
}
from
"@ionic/angular"
;
@
Component
({
@
Component
({
selector
:
"app-searchmodal"
,
selector
:
"app-searchmodal"
,
...
@@ -6,7 +7,14 @@ import { Component, OnInit } from "@angular/core";
...
@@ -6,7 +7,14 @@ import { Component, OnInit } from "@angular/core";
styleUrls
:
[
"./searchmodal.page.scss"
]
styleUrls
:
[
"./searchmodal.page.scss"
]
})
})
export
class
SearchmodalPage
implements
OnInit
{
export
class
SearchmodalPage
implements
OnInit
{
constructor
()
{}
constructor
(
private
modalController
:
ModalController
,
private
navParams
:
NavParams
)
{}
ngOnInit
()
{}
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