-
Notifications
You must be signed in to change notification settings - Fork 0
Alpha 1 specification
This document is the specification leading Reception to alpha 1.
This alpha will provide user with the following component in AS and JS :
- Button
- Radio button
- Check box
- Form
- Combo box
- Text Input
- Text Area
- Password
Of the list of component above all of them but the Form component are leaf node, meaning they can't have children. All of those component will inherit from Cocktail's DOMElement. All the input element (all of the above but Form) will inherit from an intermediate class InputDOMElement exposing attributes and event common to all input such as onChange.
The class package will mimic those of Cocktail. This alpha will only have a domElement package.
The Text input and password input, though similar are treated as separate components like in HTML. In flash, display as a password is an attribute of a textfield, we will adopt the HTML way as the implementation will be cleaner, switching from text to password would require replacing the node and it is very unlikely in a form to switch an input from text to password anyway.
The abstract class inherited by all input domElement.
- onChange
set/get the callback called when the value of an input changes
- value
set/get the current value of the input
- enabled
enable/disable the input
The abstract class for form container
- submit
call the onSubmit callback.
- onSubmit
set/get the callback called when the form is submitted
- action
set/get the URL to call once the form is submitted
- method
set/get the form submission method
- text
set/get the input text, as plain text
- maxChars
set/get the maximum number of character in a text input
- text
set/get the textArea text, as plain text
Doesn't add anything
Doesn't add anything, the check/uncheck state is determined by the "value" attribute.
Same as checkbox.
- data
set/get the data containing pairs of label/values
- selectedIndex
set/get the selected index
- selectedItem
set/get the selected item
- selectedLabel
set/get the selected label.
- onSelect
set/get the method called when an item is selected
Extends textInput domElement and makes the neccessary changes.
Contains enum and struct for Reception's DOMElements.
Represents an element of the combobox data provider
- label
- value
Represent the methods to submit a form
- GET
- POST