Skip to content

Commit

Permalink
feat(@dpc-sdp/ripple-tide-search): add label and placeholder props to…
Browse files Browse the repository at this point in the history
… address lookup
  • Loading branch information
David Featherston committed Mar 19, 2024
1 parent 3ebe3b8 commit 388dd64
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="tide-search-address-lookup">
<RplSearchBar
id="tide-address-lookup"
inputLabel="Search by postcode or suburb"
:inputLabel="label"
:showLabel="true"
variant="reverse"
:submitLabel="false"
Expand All @@ -11,7 +11,7 @@
:showNoResults="true"
:debounce="5000"
:maxSuggestionsDisplayed="8"
placeholder="Search by postcode or suburb"
:placeholder="placeholder"
:getOptionId="(itm:any) => itm.name"
:getSuggestionVal="(itm:any) => itm?.name || ''"
@submit="submitAction"
Expand Down Expand Up @@ -44,13 +44,17 @@ interface Props {
resultsloaded?: boolean
suggestionsIndex?: string
controlMapZooming?: boolean
label?: string
placeholder?: string
}
const props = withDefaults(defineProps<Props>(), {
inputValue: null,
resultsloaded: false,
suggestionsIndex: 'vic-postcode-localities',
controlMapZooming: true
controlMapZooming: true,
label: 'Search by postcode or suburb',
placeholder: 'Enter postcode or suburb'
})
const results = ref([])
Expand Down

0 comments on commit 388dd64

Please sign in to comment.