Titanium JIRA Archive
Alloy (ALOY)

[ALOY-699] Navbuttons in splitWindow markup

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2014-07-03T15:22:32.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.5.0
ComponentsTitanium SDK, XML
LabelsAlloy, SplitWindow, qe-manualtest
ReporterCarter Lathrop
AssigneeFeon Sua Xin Miao
Created2013-06-11T13:32:50.000+0000
Updated2014-08-15T18:43:52.000+0000

Description

SplitWindow supports the same proxy properties as Window. The parser should be updated to support leftNavButton/rightNavButton, leftNavButtons/rightNavButtons, titleControl, and toolbar.
<Alloy>
  <SplitWindow platform="ios" formFactor="tablet">
    <LeftNavButton>
      <Button>Click Me</Button>
    </LeftNavButton>
    <TitleControl>
      <Label>Title</Label>
    </TitleControl>
    <RightNavButton>
      <Button>Click Me</Button>
    </RightNavButton>

    <!-- The 'masterView' window -->
    <Window>
      <Label>This is the master</Label>
    </Window>
  
    <!-- The 'detailView' window -->
    <Window>
      <Label>This is the detail</Label>
    </Window>
  </SplitWindow>
</Alloy>

Comments

  1. Shawn Berg 2013-06-23

    What's the workaround for this in the meantime? I'm not able to even get the Title for each SplitWindow Window to appear properly in my Alloy app. Am I doing something wrong? See here: http://developer.appcelerator.com/question/153972/unable-to-see-titletitlecontrol-in-splitwindow-windows
  2. Feon Sua Xin Miao 2014-07-02

    Here's the the proper way to implement navbuttons in splitWindow.
       <Alloy>
       	<SplitWindow id="index" platform="ios" formFactor="tablet">
       		<!-- First window is the masterView -->
       		<NavigationWindow>
       			<Window>
       				<LeftNavButton>
       					<Button>LeftNavBtn</Button>
       				</LeftNavButton>
       				<TitleControl>
       					<Label>Title</Label>
       				</TitleControl>
       				<RightNavButton>
       					<Button>RightNavBtn</Button>
       				</RightNavButton>
       				<Label>master</Label>
       			</Window>
       		</NavigationWindow>	
       
       		<!-- Second window is the detailView -->
       		<NavigationWindow>
       			<Window>
       				<LeftNavButton>
       					<Button>LeftNavBtn</Button>
       				</LeftNavButton>
       				<TitleControl>
       					<Label>Title</Label>
       				</TitleControl>
       				<RightNavButton>
       					<Button>RightNavBtn</Button>
       				</RightNavButton>
       				<Label>detail</Label>
       			</Window>
       		</NavigationWindow>
       	</SplitWindow>
       </Alloy>
       
    Please also note that SplitWindow must have exactly 2 children of one of the following types in any combination: * * *
  3. Federico Casali 2014-08-15

    Verified the sample code works as expected. TiSDK 3.4.0.v20140813022514 Appcelerator Studio 3.3.1.201408121314 CLI 3.4.0-dev Alloy 1.5.0-dev

JSON Source