Comments (6)
Hey @vasudevpareek07 , this is how the list component works in iOS. You will have to add a custom not selected
value as part of the list and adjust your logic based on that.
from nativescript-drop-down.
@PeterStaev, Thanks for the quick response. Is it possible to style a particular option in dropdown.
from nativescript-drop-down.
Currently this is not possible.
from nativescript-drop-down.
@PeterStaev, I have added a option called as 'Select Client' in the list as first option. I am emitting the data to the parent component if the selectedIndex is greater than 0 in IOS, but when I select the first option ('Select Client'), that value is shown as selected in the dropdown field although I am setting the selectedIndex = null if selectedOption index is 0. Is there any other way I can reset/deselect the selected option ?
from nativescript-drop-down.
No there isn't. That's what I mean that in iOS the list picker always shows the first item as selected, but it can be that it isn't actually selected.
from nativescript-drop-down.
No further response so closing this one for now. In case you still have problems, please provide more details.
from nativescript-drop-down.
Related Issues (20)
- Can't make it work with Vue in iOS HOT 1
- Assertion failure in -[UISectionRowData allocateArraysWithCapacity:forSection:] HOT 3
- [Android]All closed event handler of DropDown will be triggered when any single one dropdown is closed HOT 2
- Ivy support HOT 3
- FPS is not 60 HOT 3
- Support to @nativescript/angular HOT 2
- Update to Angular 10 HOT 1
- [Angular] Angular 10 support? HOT 9
- Dropdown is not a valid view instance HOT 1
- [Angular] Cannot compile - DropDownModuleImport HOT 2
- Error after upgrading Nativescript HOT 5
- Module 'nativescript-drop-down' not found for element 'nativescript-drop-down:DropDown' HOT 10
- Nativescript drop down doesn't support latest {N} namespacing HOT 15
- When is coming a new version for N 7 ? HOT 1
- error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class. HOT 1
- iOS > Cannot read property 'frame' of null at DropDown.initNativeView HOT 15
- Picker tray doesn't display picker *on first launch* on iOS 15 physical devices
- Incorrect styling of dropdown on android HOT 3
- Selected value in dropdown field is not updating HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-drop-down.