Permalink
Cannot retrieve contributors at this time
robotlegs-examples-OreillyBook/kanbanapp/src/robotlegs/examples/kanban/view/TaskEntryBar.mxml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (29 sloc)
957 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<s:HGroup | |
xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
width="100%" | |
paddingLeft="30" | |
paddingRight="30" | |
verticalAlign="middle"> | |
<fx:Script><![CDATA[ | |
import robotlegs.examples.kanban.controller.events.SaveTaskEvent; | |
import robotlegs.examples.kanban.model.vo.Task; | |
private function taskInput_enterHandler():void | |
{ | |
var task:Task = new Task(taskInput.text); | |
dispatchEvent(new SaveTaskEvent(task)); | |
reset(); | |
} | |
public function reset():void | |
{ | |
taskInput.text = ""; | |
} | |
]]></fx:Script> | |
<s:Button id="addTask" | |
label="Add Task Backlog:" | |
click="taskInput_enterHandler()"/> | |
<s:TextInput id="taskInput" | |
width="100%" | |
enter="taskInput_enterHandler()"/> | |
</s:HGroup> |