| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <c:ExampleAndSourceCodeTabbedSectionContent xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:j="library://ns.apache.org/royale/jewel" |
| xmlns:html="library://ns.apache.org/royale/html" |
| xmlns:js="library://ns.apache.org/royale/basic" |
| xmlns:c="components.*" sourceCodeUrl="NumericStepperPlayGround.mxml"> |
| |
| <fx:Script> |
| <![CDATA[ |
| private function valueChangeHandler(event:Event):void { |
| result.text = "Default NumericStepper: " + numericStepper.value; |
| } |
| ]]> |
| </fx:Script> |
| |
| <j:Grid gap="true" itemsVerticalAlign="itemsSameHeight"> |
| <j:beads> |
| <j:Paddings paddingTop="0" paddingLeft="50" paddingRight="50" paddingBottom="50"/> |
| </j:beads> |
| |
| <c:ExampleHeader title="Jewel NumericStepper"> |
| <c:description> |
| <![CDATA[<strong>Jewel NumericStepper</strong> examples.]]> |
| </c:description> |
| </c:ExampleHeader> |
| |
| <j:GridCell desktopNumerator="1" desktopDenominator="1" tabletNumerator="1" tabletDenominator="1" phoneNumerator="1" phoneDenominator="1"> |
| <j:Card> |
| <html:H3 text="Jewel NumericStepper"/> |
| |
| <j:HGroup gap="3" itemsVerticalAlign="itemsCenter"> |
| <j:NumericStepper id="numericStepper" valueChange="valueChangeHandler(event)"/> |
| <j:Label id="result" text="Default NumericStepper: "/> |
| </j:HGroup> |
| |
| <j:HGroup gap="3" itemsVerticalAlign="itemsCenter"> |
| <j:NumericStepper value="30"/> |
| <j:Label text="NumericStepper value='30'"/> |
| </j:HGroup> |
| |
| <j:HGroup gap="3" itemsVerticalAlign="itemsCenter"> |
| <j:NumericStepper minimum="10" maximum="100"/> |
| <j:Label text="NumericStepper minimum='10' and maximum='100'" multiline="true" width="300"/> |
| </j:HGroup> |
| |
| <j:HGroup gap="3" itemsVerticalAlign="itemsCenter"> |
| <j:NumericStepper stepSize="2"/> |
| <j:Label text="NumericStepper stepSize='2'"/> |
| </j:HGroup> |
| </j:Card> |
| </j:GridCell> |
| </j:Grid> |
| |
| </c:ExampleAndSourceCodeTabbedSectionContent> |