Giter Club home page Giter Club logo

Comments (26)

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024 1

That will be super cool, will slack you in some time now :)

Regards,
Madhu
On 17-Nov-2016 6:18 AM, "Brad Martin" [email protected] wrote:

Understand, I was in that position a year ago and switched a few companies
over once they had the POC set up. If you aren't on the NativeScript slack
channel, you might want to join that since you're starting out. Tons of
helpful information and knowledgable devs with NativeScript. You might get
an answer there faster than I can provide on github sometimes 👍 You can
also ping me on the slack channel.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_TzirqLGjL4sBZTe3J-LbZojn4UoOks5q--OagaJpZM4Kwc6P
.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Try the following steps in the blog post then include your markup and the
exact error thrown if this blog post doesn't help you. Thanks
https://bradmartin.net/2016/07/20/ahhh-this-nativescript-plugin-doesnt-work/

On Sat, Nov 12, 2016, 10:06 AM Madhu [email protected] wrote:

I have installed cardview, this is installed with in parent node_module
where tns-core-module resides.
I have updated my .xml page to include it like that way you have told,
when I emulate it breaks saying
nativescript-cardview not found on .xml page when trying to build the ui.
So I tried including the model in .page.js files with both relative and
absolute path to module again it says not found.

I am not using any angular 2 here, I found some solutions but things are
not working.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#35, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFulhDoNb3faFLEl1zarX_O6Jo4f-O9lks5q9eLMgaJpZM4Kwc6P
.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Hi that dint work also.
Here is my code .xml page
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="onNavigatingTo" xmlns:Card="nativescript-cardview"> <StackLayout> <Button text="TAP" tap="{{ onTap }}" style="width:200;height:200;border-width:1;border-color:red;border-radius:100;background-color:green"/> <Border borderRadius="100" borderWidth="2" borderColor="#FF0000"> <Label text="Tap the button" class="title"/> </Border> <Label text="{{ message }}" class="message" textWrap="true"/> <Button text="Setting Page" tap="{{ navigateToSetting }}"/> <Card:CardView class="cardStyle" margin="10" elevation="40" radius="5"> <grid-layout rows="200, auto, auto" columns="auto, auto, *"> <image src="res://icon" stretch="aspectFill" colSpan="3" row="0" /> <label text="Batman wants to be friends?" class="info" textWrap="true" row="1" colSpan="3" /> <button text="DECLINE" tap="goAway" row="2" col="0" /> <button text="ACCEPT" row="2" col="1" /> </grid-layout> </Card:CardView> </StackLayout> </Page>

main-view.mode.js
`var Observable = require("data/observable").Observable;
var frame = require('ui/frame');

function getMessage(counter) {
if (counter <= 0) {
return "Hoorraaay! You unlocked the NativeScript clicker achievement!";
} else {
return counter + " taps left";
}
}

function createViewModel() {
var viewModel = new Observable();
viewModel.counter = 42;
viewModel.message = getMessage(viewModel.counter);

viewModel.onTap = function() {
    this.counter--;
    this.set("message", getMessage(this.counter));
}

 viewModel.navigateToSetting = function() {
    frame.topmost().navigate('settings');
 }

return viewModel;

}

exports.createViewModel = createViewModel;`

main-page.js
`var createViewModel = require("./main-view-model").createViewModel;

function onNavigatingTo(args) {
var page = args.object;
page.bindingContext = createViewModel();
}
exports.onNavigatingTo = onNavigatingTo;`

app.js
var application = require("application"); application.start({ moduleName: "main-page" });
I ran these commands (Yes I did remove the build on my device)
tns plugin add nativescript-cardview
tns build android
tns run android --avd Nexus6

Attached screen shot
screenshot_1478968797

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Can you put your package.json also?

On Sat, Nov 12, 2016, 10:45 AM Madhu [email protected] wrote:

Hi that dint work also.
Here is my code .xml page








<Card:CardView class="cardStyle" margin="10" elevation="40" radius="5">






/Card:CardView

main-view.mode.js
`var Observable = require("data/observable").Observable;
var frame = require('ui/frame');

function getMessage(counter) {
if (counter <= 0) {
return "Hoorraaay! You unlocked the NativeScript clicker achievement!";
} else {
return counter + " taps left";
}
}

function createViewModel() {
var viewModel = new Observable();
viewModel.counter = 42;
viewModel.message = getMessage(viewModel.counter);

viewModel.onTap = function() {
this.counter--;
this.set("message", getMessage(this.counter));
}

viewModel.navigateToSetting = function() {
frame.topmost().navigate('settings');
}

return viewModel;

}

exports.createViewModel = createViewModel;`

main-page.js
`var createViewModel = require("./main-view-model").createViewModel;

function onNavigatingTo(args) {
var page = args.object;
page.bindingContext = createViewModel();
}
exports.onNavigatingTo = onNavigatingTo;`

app.js
var application = require("application");
application.start({ moduleName: "main-page" });

I ran these commands (Yes I did remove the build on my device)
tns plugin add nativescript-cardview
tns build android
tns run android --avd Nexus6

Attached screen shot
[image: screenshot_1478968797]
https://cloud.githubusercontent.com/assets/1130319/20239415/cce2560a-a8ff-11e6-9606-5e6de7e9bf52.png


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFulhJlf8elWRfevZdGRgiXXMzz7dvv9ks5q9e1CgaJpZM4Kwc6P
.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

{ "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "readme": "NativeScript Application", "repository": "<fill-your-repository-here>", "nativescript": { "id": "org.nativescript.crossCommunication", "tns-android": { "version": "2.3.0" } }, "dependencies": { "nativescript-cardview": "^1.2.0", "tns-core-modules": "2.3.0" }, "devDependencies": { "babel-traverse": "6.18.0", "babel-types": "6.18.0", "babylon": "6.13.1", "lazy": "1.0.11", "nativescript-cardview": "^1.2.0" } }

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

I'll try a new project and see what happens when I get some time. I've only
seen this issue when I forget a step after adding the plugin but it seems
you've done the correct steps so I'm not sure.

On Sat, Nov 12, 2016, 11:19 AM Madhu [email protected] wrote:

{
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"readme": "NativeScript Application",
"repository": "",
"nativescript": {
"id": "org.nativescript.crossCommunication",
"tns-android": {
"version": "2.3.0"
}
},
"dependencies": {
"nativescript-cardview": "^1.2.0",
"tns-core-modules": "2.3.0"
},
"devDependencies": {
"babel-traverse": "6.18.0",
"babel-types": "6.18.0",
"babylon": "6.13.1",
"lazy": "1.0.11",
"nativescript-cardview": "^1.2.0"
}
}


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFulhPIDvhLpC5GpmeXmCHOternnC9Vbks5q9fUWgaJpZM4Kwc6P
.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Sure, I just started with native script and started of a basic project.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

I just cloned the repo and ran the demo successfully.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Hmmm can you please put your markup here?

with package.json, I have trying it no luck!

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

It's the demo app for this repo. https://github.com/bradmartin/nativescript-cardview

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Did you ever get this working? I've still not had an issue and doesn't seem to be a common issue so it's hard to verify exactly what's wrong with your case unfortunately.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Hi,

Yes and no, if I checkout git repo and run it it seems to be working. But
if I try to include this to already existing JavaScript project it seems to
break.

I am not using angular 2.

Regards,
Madhu
On 17-Nov-2016 3:13 AM, "Brad Martin" [email protected] wrote:

Did you ever get this working? I've still not had an issue and doesn't
seem to be a common issue so it's hard to verify exactly what's wrong with
your case unfortunately.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_T_sJWl6F-MLCo9lbnOv2v0LIj4YPks5q-7hOgaJpZM4Kwc6P
.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Okay, I'll try it with a project I have later on and see what happens. It's odd but we'll figure it out 😄

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Thank you very much!!

I have too many doubts, not getting my head around it. Basically I am a
Ionic framework user, wanted to prove my team to use NS. So trying to come
up with a POC.

I hope you don't mind if I ask something other than card views.

Regards,
Madhu
On 17-Nov-2016 6:08 AM, "Brad Martin" [email protected] wrote:

Okay, I'll try it with a project I have later on and see what happens. It's
odd but we'll figure it out 😄


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_TzpeFNrbtY2kiSbAST_nLPdwToY1ks5q--FLgaJpZM4Kwc6P
.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Understand, I was in that position a year ago and switched a few companies over once they had the POC set up. If you aren't on the NativeScript slack channel, you might want to join that since you're starting out. Tons of helpful information and knowledgable devs with NativeScript. You might get an answer there faster than I can provide on github sometimes 👍 You can also ping me on the slack channel.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Brad,

http://developer.telerik.com/wp-login.php?action=slack-invitation

Tried this, I think invites are not sent or its not working.

Can you please add me or invite me?

madhusudhan. bhaskar@gmail

Regards,
Madhu
On 17-Nov-2016 6:22 AM, "madhu sudhan" [email protected]
wrote:

That will be super cool, will slack you in some time now :)

Regards,
Madhu
On 17-Nov-2016 6:18 AM, "Brad Martin" [email protected] wrote:

Understand, I was in that position a year ago and switched a few
companies over once they had the POC set up. If you aren't on the
NativeScript slack channel, you might want to join that since you're
starting out. Tons of helpful information and knowledgable devs with
NativeScript. You might get an answer there faster than I can provide on
github sometimes 👍 You can also ping me on the slack channel.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_TzirqLGjL4sBZTe3J-LbZojn4UoOks5q--OagaJpZM4Kwc6P
.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Go to the NativeScript site here https://www.nativescript.org/ and try the SLACK button on the homepage.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

snip20161116_5

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Sorry for bothering you a lot, I don't see it.

Regards,
Madhu
On 17-Nov-2016 6:44 AM, "Brad Martin" [email protected] wrote:

[image: snip20161116_5]
https://cloud.githubusercontent.com/assets/6006148/20377629/8b88c388-ac56-11e6-942e-d9e44246d47e.png


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_T80IncrXSaC5pV4GctBUK3dJtkFpks5q--mmgaJpZM4Kwc6P
.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

No worries 😄
snip20161117_6

bedtime here 💤 hope you find it on the site there, I don't control slack or I'd just send you a link 👍

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Brad,

I see slack, but its same not generating any invite. May be something that
you can help me tomorrow with when you are free or have time to.

Good Night!!

Regards,
Madhu

On Thu, Nov 17, 2016 at 7:24 AM, Brad Martin [email protected]
wrote:

No worries 😄

[image: snip20161117_6]
https://cloud.githubusercontent.com/assets/6006148/20378486/15c5fb06-ac5c-11e6-8ff2-e205e8c02734.png

bedtime here 💤 hope you find it on the site there, I don't control slack
or I'd just send you a link 👍


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_TzEOnDGMo5sdP7CK2BRqlgL3aOICks5q-_MPgaJpZM4Kwc6P
.

Regards,
Madhusudhan Bhaskar
Cell: +31 685898121

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Brad,

I have a grid layout, that has button images and some text. I use clip
path: circle to show 1/4 of a circle.

Have added tap on grid, how do I say that tap should work only on 1/4
circle.

Regards,
Madhu
On 17-Nov-2016 8:49 AM, "madhu sudhan" [email protected]
wrote:

Brad,

I see slack, but its same not generating any invite. May be something that
you can help me tomorrow with when you are free or have time to.

Good Night!!

Regards,
Madhu

On Thu, Nov 17, 2016 at 7:24 AM, Brad Martin [email protected]
wrote:

No worries 😄

[image: snip20161117_6]
https://cloud.githubusercontent.com/assets/6006148/20378486/15c5fb06-ac5c-11e6-8ff2-e205e8c02734.png

bedtime here 💤 hope you find it on the site there, I don't control
slack or I'd just send you a link 👍


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_TzEOnDGMo5sdP7CK2BRqlgL3aOICks5q-_MPgaJpZM4Kwc6P
.

Regards,
Madhusudhan Bhaskar
Cell: +31 685898121

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

Hey @MadhuSudhanBhaskar did you ever get into the Slack group? That's going to be easier to help with a question like that on Stack Overflow or on Slack. Sorry, I'm at a conference the next few days so I'll be MIA.

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

Hi Brad!!

Slack tried multiple times, I did not get any invitation from slack.

Regards,
Madhu
On 17-Nov-2016 11:50 PM, "Brad Martin" [email protected] wrote:

Hey @MadhuSudhanBhaskar https://github.com/MadhuSudhanBhaskar did you
ever get into the Slack group? That's going to be easier to help with a
question like that on Stack Overflow or on Slack. Sorry, I'm at a
conference the next few days so I'll be MIA.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE_TyCpvoJbPfPBb-iwxN_ly8q7rN5Tks5q_No_gaJpZM4Kwc6P
.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 24, 2024

@MadhuSudhanBhaskar - let me know if you still have issues but I'm using this fine in a couple of apps with no issue. Let me know and we can revisit possibly with a new issue to keep things cleaner than the messages above ^^^ just to keep it easier on the 👀

from nativescript-cardview.

MadhuSudhanBhaskar avatar MadhuSudhanBhaskar commented on May 24, 2024

from nativescript-cardview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.