This question is locked. New answers and comments are not allowed.
Hi all.
I am using the trial version of NativeScript UI, downloaded yesterday, version 1.6.0.063.
I am unable to apply a style to the autocomplete view, I always get a white background in the SuggestionView and suggestionItems are spaced vertically (as shown in the attached image 1).
I used the code from the sample in the documentation downloaded with the component, i just applied a couple of classes or inline style to try to achieve the desired result (image 2).
<ACTextField:RadAutoCompleteTextView id="autocmp" items="{{ dataItems }}" tokenAdded="{{ onTokenAdded}}" suggestMode="SuggestAppend" displayMode="Plain" completionMode="StartsWith" class="searchTextField"> <ACTextField:RadAutoCompleteTextView.suggestionView backgroundColor="magenta"> <ACTextField:SuggestionView suggestionViewHeight="300" class="suggestion-view" backgroundColor="magenta"> <ACTextField:SuggestionView.suggestionItemTemplate backgroundColor="magenta"> <StackLayout orientation="vertical" padding="10" class="suggestion-element" backgroundColor="#07354c" margin="0"> <Label text="{{ text }}" margin="0" color="#ffffff"></Label> </StackLayout> </ACTextField:SuggestionView.suggestionItemTemplate> </ACTextField:SuggestionView> </ACTextField:RadAutoCompleteTextView.suggestionView></ACTextField:RadAutoCompleteTextView>
CSS class selectors doesn't work at all, for example I am trying this and only the first one on the main textfield works:
.suggestion-element { color: #f8e; background-color: #07354c; margin: 0;}.suggestion-element Label {
color: #ffff00; background-color: #0000ff; margin: 0;}.suggestion-view {
background-color: #07354c;}
Any help appreciated, thank you very much,
Christo_
