Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doneSuccess and doneFailure callback functions and display resources in list and expanded view #74

Merged
merged 3 commits into from
Nov 5, 2012

Conversation

arjunballa
Copy link
Contributor

  • code to pass doneSuccess and doneFailure callback functions. doneSuccess is invoked after successful rendering of swagger-ui and doneFailure is invoke if there is failure in rendering swagger-ui
  • code to display resources in default/list/expended style. style can be
    passed as a option while creating swagerUi object.
    In future I would like to achieve this by passing options to templates
    and have a template helper method manipulate dom and apply correct
    classes.This approach will improve the performance as we need not go
    over the entire dom and call Doc.collapseOperationsForResource or
    Doc.expandOperationsForResource on each matched element

unknown and others added 3 commits October 23, 2012 11:22
…ess is invoked after successful rendering of swagger-ui and doneFailure is invoke if there is failure in rendering swagger-ui
passed as a option while creating swagerUi object.
In future I would like to achieve this by passing options to templates
and have a template helper method manipulate dom and apply correct
classes.This approach will improve the performance as we need not go
over the entire dom and call Doc.collapseOperationsForResource or
Doc.expandOperationsForResource on each matched element
@fehguy
Copy link
Contributor

fehguy commented Oct 31, 2012

@ayush can you verify this PR?

ayush added a commit that referenced this pull request Nov 5, 2012
doneSuccess and doneFailure callback functions and display resources in list and expanded view
@ayush ayush merged commit f435ffa into swagger-api:master Nov 5, 2012
@ayush
Copy link
Contributor

ayush commented Nov 5, 2012

@arjunballa Thanks for the pull request. I've merged it but just a heads up that I've changed the param named to docExpansion, onComplete and onFailure.

vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this pull request Aug 18, 2016
doneSuccess and doneFailure callback functions and display resources in list and expanded view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants