Skip to content

Pagecontainer: fixed xml structure for method custom examples #231

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions entries/pagecontainer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,10 @@ $( ":mobile-pagecontainer" ).on( "pagecontainershow", function( event, ui ) {

<methods>
<method name="change">
<example>$( ":mobile-pagecontainer" ).pagecontainer( "change", "confirm.html", { role: "dialog" } );</example>
<desc>Programmatically change from one page to another.</desc>
<example>
<code>$( ":mobile-pagecontainer" ).pagecontainer( "change", "confirm.html", { role: "dialog" } );</code>
<desc>Programmatically change from one page to another.</desc>
</example>
<argument name="to">
<desc>The URL to which to navigate. This can be specified either as a string, or as a jQuery collection object containing the page DOM element.</desc>
<type name="String"/>
Expand Down Expand Up @@ -409,8 +411,10 @@ $( ":mobile-pagecontainer" ).on( "pagecontainershow", function( event, ui ) {
<desc>Return the currently active page.</desc>
</method>
<method name="load" return="Promise">
<example>$( ":mobile-pagecontainer" ).pagecontainer( "load", "confirm.html", { role: "dialog" } );</example>
<desc>Load an external page, enhance its content, and insert it into the DOM.</desc>
<example>
<code>$( ":mobile-pagecontainer" ).pagecontainer( "load", "confirm.html", { role: "dialog" } );</code>
<desc>Load an external page, enhance its content, and insert it into the DOM.</desc>
</example>
<argument name="url">
<desc>The URL from which to load the page. This can be an absolute or a relative URL (e.g. "about/us.html"). You can also specify a jQuery collection object.</desc>
<type name="String" />
Expand Down