Opened 11 years ago

Closed 11 years ago

#13274 closed enhancement (worksforme)

Support for ioMethod in dijit.layout.ContentPane

Reported by: zimnyx Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:


Dijit/ContentPane? does recognize this.ioMethod, but doesn't support passing ioMethod param to the constructor.

P.S. It's fully supported for dojox/ContentPane.

Change History (2)

comment:1 Changed 11 years ago by bill

What do you mean exactly? Are you talking about creating a ContentPane programatically, ex

new dijit.layout.ContentPane({ioMethod: dojo.xhrPost})

or creating it declaratively like

<div data-dojo-type="dijit.layout.ContentPane"
           data-dojo-props="ioMethod: dojo.xhrPost">

or creating it declaratively in the old style like:

<div dojoType="dijit.layout.ContentPane" ioMethod="dojo.xhrPost">

At a glance it looks like the first two will both work with either ContentPane and the third one will work with neither of them.

The one thing I see missing is for API documention for dijit.layout.ContentPane, since it's missing:

// ioMethod: dojo.xhrGet|dojo.xhrPost
//		reference to the method that should grab the content
ioMethod: dojo.xhrGet,

comment:2 Changed 11 years ago by bill

Resolution: worksforme
Status: newclosed

Since there's no response, I'll assume this is working correctly, and just update the API documentation.

Note: See TracTickets for help on using tickets.