-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-added v-model for the vue wrapper example apps, code cleanup, rena…
…ming to search-field
- Loading branch information
verena-ifx
authored and
verena-ifx
committed
Jul 10, 2023
1 parent
37d02b5
commit 268663f
Showing
33 changed files
with
244 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
examples/wrapper-components/react-javascript/src/components/SearchField/SearchField.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import { IfxSearchField } from '@infineon/infineon-design-system-react'; | ||
|
||
function SearchField() { | ||
const handleSearch = (event) => { | ||
console.log("handling input: ", event.detail) | ||
}; | ||
|
||
return ( | ||
<div > | ||
<IfxSearchField disabled="false" size='m' show-delete-icon="true" onIfxInput={handleSearch}></IfxSearchField> | ||
</div> | ||
) | ||
} | ||
|
||
export default SearchField; | ||
|
||
|
18 changes: 0 additions & 18 deletions
18
examples/wrapper-components/react-javascript/src/components/SearchInput/SearchInput.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
examples/wrapper-components/react-typescript/src/components/SearchField/SearchField.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { IfxSearchField } from '@infineon/infineon-design-system-react'; | ||
|
||
function SearchField() { | ||
const handleSearch = (event: CustomEvent) => { | ||
console.log("handling input: ", event.detail) | ||
}; | ||
|
||
return ( | ||
<div > | ||
<IfxSearchField disabled={false} size='m' show-delete-icon="true" onIfxInput={handleSearch}></IfxSearchField> | ||
</div> | ||
) | ||
} | ||
|
||
export default SearchField; | ||
|
||
|
17 changes: 0 additions & 17 deletions
17
examples/wrapper-components/react-typescript/src/components/SearchInput/SearchInput.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/wrapper-components/vue-javascript/src/components/SearchField.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<template> | ||
<div> | ||
<h2>Search-Field</h2> | ||
<h3>Using v-model</h3> | ||
|
||
<ifx-search-field v-model="searchInput" disabled="false" size='m' show-delete-icon="true"></ifx-search-field> | ||
<p>Search field: {{ searchInput }}</p> | ||
<br /> | ||
<br /> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref, onMounted } from 'vue' | ||
const searchInput = ref(''); | ||
onMounted(() => { | ||
updateSearchBarAndSearchInput(); | ||
setInterval(updateSearchBarAndSearchInput, 10000); | ||
}) | ||
function updateSearchBarAndSearchInput() { | ||
console.log("updating search field") | ||
searchInput.value = searchInput.value + "+1"; | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
17 changes: 0 additions & 17 deletions
17
examples/wrapper-components/vue-javascript/src/components/SearchInput.vue
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
examples/wrapper-components/vue-javascript/src/components/TextInput.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
examples/wrapper-components/vue-typescript/src/components/SearchField.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div> | ||
<h2>Search Field</h2> | ||
<h3>Using v-model</h3> | ||
|
||
<ifx-search-field v-model="searchInput" disabled="false" size='m' show-delete-icon="true"></ifx-search-field> | ||
<br /> | ||
<br /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref, onMounted } from 'vue' | ||
const searchInput = ref(''); | ||
onMounted(() => { | ||
updateSearchBarAndSearchInput(); | ||
setInterval(updateSearchBarAndSearchInput, 10000); | ||
}) | ||
function updateSearchBarAndSearchInput() { | ||
console.log("updating search field") | ||
searchInput.value = searchInput.value + "+1"; | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
17 changes: 0 additions & 17 deletions
17
examples/wrapper-components/vue-typescript/src/components/SearchInput.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.