Solution - now I can call methods defined against the User model using the _self property.įormat: item => erTML(item._self. This._self = this // Initialize User object with a reference to itself With this in mind, I modified my User model to contain a reference to itself: Assume all best-friend relationships are reciprocalįormat: item => () ) Taking this a step further, I traced the bi-directional relationship back to the original object so I could call its methods: Install library dependencies npm install -save jquery npm install -save bootstrap npm install -save flag-icon-css. ReportGrid.Column("", header: "First Name Backwards",įormat: item => () ) In exploring this issue and examining some of my other WebGrid code, I found that I am able to access 2nd order methods defined against objects that can be accessed through properties on the model object bound to the WebGrid. Note: the -save flag will add the plugin as. I would appreciate any feedback on this or alternate solutions. Plugin could be added as a standard npm dependency running command npm install nativescript-camera -save. I found a way around this problem, but I'm still hopeful there is a better way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |