Opened 7 years ago

Closed 3 years ago

#15822 closed defect (patchwelcome)

dojox.mobile: Heading's back button ignores transitionOptions

Reported by: Micha Owned by: Patrick Ruzand
Priority: undecided Milestone: 1.13
Component: DojoX Mobile Version: 1.8.0rc1
Keywords: Cc:
Blocked By: Blocking:

Description

The back mechanism of dojox.mobile.Heading only accepts a view target by moveTo attribute. For dojox.app it is necessary to pass the transition target via transitionOptions, cause the view ID is generated dynamically.

doesn't work (creating the view id manually as a workaround):

<h1 data-dojo-type="dojox/mobile/Heading" data-dojo-props="transitionOptions: { target: 'SomeScene,SomeView', url: '#SomeScene,SomeView' }, label: 'Heading', back: 'Back'" region="top"></h1>

does work:

<h1 data-dojo-type="dojox/mobile/Heading" data-dojo-props="moveTo: someApp_SomeScene_SomeView, label: 'Heading', back: 'Back'" region="top"></h1>

The "defect" is in Heading._setBackAttr where a dojox.mobile.ToolBarButton? is generated without recognition of the transitionOptions attribute:

	this.backButton = new ToolBarButton({
		arrow: "left",
		label: back,
		moveTo: this.moveTo,
		back: !this.moveTo,
		href: this.href,
		transition: this.transition,
		transitionDir: -1
	});

Change History (4)

comment:1 Changed 7 years ago by Eric Durocher

Component: GeneralDojoX Mobile
Owner: set to Eric Durocher

comment:2 Changed 7 years ago by ykami

The back button of Heading is a simplified version of ToolBarButton. If you need full control, (assuming that you are using 1.8) you can create the same one as follows. This way the back button can take whatever options.

<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='label:"Search Result"'>
    <span data-dojo-type="dojox.mobile.ToolBarButton" data-dojo-props='arrow:"left",moveTo:"foo"'>Back</span>
</h1>

comment:3 Changed 6 years ago by Patrick Ruzand

Owner: changed from Eric Durocher to Patrick Ruzand
Status: newassigned

comment:4 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: assignedclosed

Given that no one has shown interest in creating a patch in the past 3+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.