Tabs "save and continue button"

338 views
Skip to first unread message

Adam Willoughby-Knox

unread,
Apr 9, 2013, 3:24:58 PM4/9/13
to ang...@googlegroups.com
Basically I have tabs based on the angularjs homepage code.
I have forms inside of each pane.
The content of the form is in the view, but the state is handled in the controller's scope.

I would like to add a button to the bottom of the pane that is a "save & continue" function.
The button needs to serialize the forms and save them with ajax, and then navigate to the next tab.

I feel like I want to expose the tab directives api, and add a method like "nextPane".
And still manage the ng-click in the controller, as the form serialization and ajax should live there.

Thoughts?
Help?

Thanks so much


resources:

Pawel Kozlowski

unread,
Apr 9, 2013, 3:47:00 PM4/9/13
to ang...@googlegroups.com
Hi Adam!

Have you seen the tabs directive from the http://angular-ui.github.io/bootstrap/ project?
It is also based on the AngularJS version but we've added couple of extensions as well. Among other things we want to be able to control tabs pragmatically, Let's join the forces!

Cheers,
Pawel


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Looking for bootstrap-based widget library for AngularJS? http://angular-ui.github.com/bootstrap/

Adam Willoughby-Knox

unread,
Apr 9, 2013, 5:51:11 PM4/9/13
to ang...@googlegroups.com
Just tried using this, it looks closer to what i want, I wanted to keep the content static, and it looks like you can only set "active" to dynamic panes.
Also there doesn't seem to be a "nextPane" command. I'm coming from a jquery world where i would assign whatever I instantiate tabs on to a variable, and
then an api is exposed from that. Am I supposed to do something similiar like attach the tabs to an ng-model that exposes some of the api ?
Reply all
Reply to author
Forward
0 new messages