Can You Change Buttons color onfocuse In Nativescript/Angular #9721
Unanswered
thisiseddy-ab
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Here is the solution in Android onloaded event ######## HTML ######################
######## CSS #################
Disbaling in it
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can You Change Buttons color onfocused like yout do in TextField In Nativescript/Angular.. It works in TextField but not in BUTTON Does someone knows some other solution, im trying to build a tvapp i need to change the color when is focused in Button or Label
My StackOverflow Question
https://stackoverflow.com/questions/70513009/can-you-change-buttons-color-onfocuse-in-nativescript-angular
https://stackoverflow.com/questions/70555555/listen-to-focuschange-in-ios-tvos-for-nativescript-angular
<Page loaded="onPageLoaded($event)"> <StackLayout> <Button text="My Button 2" class="my_button_2" > </Button> <TextField class="input-field"> </TextField> </StackLayout> </Page>
`
.my_button_2:focus{
background:olive;
border-color: red;
border: 2;
border-width: 2;
}
.my_button_2:active{
background:olive;
border-color: red;
border: 2;
border-width: 2;
}
.input-field:focus {
border-bottom-color: red;
`
Beta Was this translation helpful? Give feedback.
All reactions