Comments (9)
@apologetics using a custom made side drawer and the exact same functions my issue was resolved. Somehow when the function is called, via the index function of the plugin, ngmodels do not like to work even with data present. This doesnt make much sense to me but I haven't had time to investigate it
from nativescript-sidedrawer.
This is what I did using Angular and TypeScript.
// All the code you need to set the drawer up
...
listener: (index) => {
this.handleDrawerItemTap(index); // Call the function or place the switch right here
},
...
// All the rest
// Consider index to follow appropriate route. The order is 0-based and matches the order
// of your drawer items initialized in 'templates'. Bear in mind that you need to inject the
// Router into your component.
private handleDrawerItemTap(index : number) : void {
switch (index) {
case 0:
this.router.navigate(["/foo"]);
break;
... // Other cases
}
}
from nativescript-sidedrawer.
has anyone found an issue with data binding when using the above method?
When the above method is used my page is not populated with data.
However if I can to the exact same page from outside of the sidebar, the data appears as it should.
from nativescript-sidedrawer.
It could potentially take place, but it is not the problem with sidedrawer, this is due to the router behaviour. Code is needed to replicate the issue.
from nativescript-sidedrawer.
@SamuelGRwebfab could you attach the code? Please. I have the same issue, when click the model doesn't work. Thanks.
from nativescript-sidedrawer.
@SamuelGRwebfab I am having the same problem. Could you tell me how you did it?
from nativescript-sidedrawer.
I solved it by using this.routerextension.navigate(['/LeaveInfo'], {
clearHistory: true,
animated: false
}) instead of this.router.navigate(["/foo"]);
from nativescript-sidedrawer.
@ecolasurdo i switch to a custom radsidedrawer instead of using the plugin. however @Saguntamrakar fix may work but would cause history issues is you like to use the goBack function
from nativescript-sidedrawer.
Hi boys!
I have the same problem as @SamuelReeder !! I think that is a sidedrawer problem. If I use a button instead sidedrawer populates perfectly! Please Help!
from nativescript-sidedrawer.
Related Issues (20)
- com.mikepenz.materialdrawer.d.ts is not a module HOT 5
- How to style individual items? HOT 3
- cannot find namespace for android, java, native in com.mikepenz.materialdrawer.d.ts HOT 3
- error TS2304: Cannot find name 'java' HOT 1
- how can i use this plugin with nativescript with vanilla javascript project HOT 3
- Item long press
- unable to get full view of sidedrawer in ios HOT 18
- Can I hi-light a menu entry on tap?
- Nested menus? HOT 1
- Feature Request: fontAwesome icons HOT 2
- How to rebuild the sidedrawer
- Javascript Sample
- Error: No animation target specified HOT 1
- After first time build, Sidedrawer is showing in all pages/components throughout the app
- Title bar transparency problem
- RTL support
- Android - sidedrawer is changing styling
- Need help with this project? HOT 2
- {N}v3 support HOT 2
- how integrate with nativescript-vue? some example please!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-sidedrawer.