nativescript-vue

How can I change color / backgroundColor of list item in nativescript-vue?

蓝咒 提交于 2020-08-11 02:18:03
问题 I want to update selected item style when user taps on items. nextIndex/event.index is updated but style doesn't apply. Thanks for your help. https://play.nativescript.org/?template=play-vue&id=ihH3iO export default { name: "CustomListView", props: ["page", "title", "items", "selectedIndex"], data() { return { nextIndex: this.selectedIndex ? this.selectedIndex : undefined }; }, methods: { onItemTap(event) { this.nextIndex = event.index; } } }; .selected { color: white; background-color: black

How can I change color / backgroundColor of list item in nativescript-vue?

 ̄綄美尐妖づ 提交于 2020-08-11 02:13:55
问题 I want to update selected item style when user taps on items. nextIndex/event.index is updated but style doesn't apply. Thanks for your help. https://play.nativescript.org/?template=play-vue&id=ihH3iO export default { name: "CustomListView", props: ["page", "title", "items", "selectedIndex"], data() { return { nextIndex: this.selectedIndex ? this.selectedIndex : undefined }; }, methods: { onItemTap(event) { this.nextIndex = event.index; } } }; .selected { color: white; background-color: black

Nativescript-vue graphql backend?

我是研究僧i 提交于 2020-07-19 08:47:13
问题 Just started to experiment with nativescript-vue . Since it's pretty new, can't seem find good documentation on nativescript-vue integration with graphql. Tried vue-apollo, but can't install. When I do vue add apollo , it errors out. Is there any good docs on how to integrate nativescript-vue with graphql backend or more specifically via apollo ? 回答1: I want to confirm that nativescript-vue is working properly with vue-apollo . You should first install apollo-boost using npm or yarn yarn add

How to call axios/api call in Nativescript application

五迷三道 提交于 2020-05-24 21:01:29
问题 I'm trying to build a small application on Nativescript-vue where I'm having backend laravel framework for api calls which needs to be called to get relevant data. For example if user wants to login he needs to validate its credentials through api oauth/token so I'm trying to call this through axios here is my code: My settings.js file contains. export const authHeader = { 'Accept': 'application/json', 'Content-Type': 'application/json' } this is being imported inside my axios calls: const

How to add headers in login.vue?

眉间皱痕 提交于 2020-05-16 07:58:45
问题 How to update headers of apolloProvider? Please check out nativescript-vue app repo: https://github.com/kaanguru/vue-apollo-login I can not explain properly so please check out the app. I don't know how to update appolloClient headers. App repo has it's own comments and directives. It's easy to install and see by your self. Current Structure of code: Post request submits the user's identifier and password credentials for authentication and gets token in login page. Apollo needs to place the

How to add headers in login.vue?

徘徊边缘 提交于 2020-05-16 07:58:06
问题 How to update headers of apolloProvider? Please check out nativescript-vue app repo: https://github.com/kaanguru/vue-apollo-login I can not explain properly so please check out the app. I don't know how to update appolloClient headers. App repo has it's own comments and directives. It's easy to install and see by your self. Current Structure of code: Post request submits the user's identifier and password credentials for authentication and gets token in login page. Apollo needs to place the