Opened 9 years ago

Closed 6 years ago

#15822 closed defect (patchwelcome) 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:


The back mechanism of only accepts a view target by moveTo attribute. For 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 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 9 years ago by Eric Durocher

Component: GeneralDojoX Mobile
Owner: set to Eric Durocher

comment:2 Changed 9 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="" data-dojo-props='label:"Search Result"'>
    <span data-dojo-type="" data-dojo-props='arrow:"left",moveTo:"foo"'>Back</span>

comment:3 Changed 9 years ago by Patrick Ruzand

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

comment:4 Changed 6 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.