Browse files

Updated readme/demo for 0.10

  • Loading branch information...
1 parent 5b43699 commit f552394159ce6ff51653a6453a81e45b3186a6d0 @dvandersluis dvandersluis committed Jul 31, 2009
Showing with 14 additions and 17 deletions.
  1. +10 −0 README.md
  2. +4 −17 index.html
View
10 README.md
@@ -59,6 +59,8 @@ Copyright: InteRiders <http://interiders.com/> - Distributed under MIT - Keep th
- if the control is building the autocomplete div itself, specifies the default message to use.
- sortResults: false
- specifies whether autocomplete results should be sorted alphabetically by caption.
+ - autoDelay: 250
+ - specifies the delay before the autocomplete results appear.
## Changelog
@@ -128,3 +130,11 @@ Copyright: InteRiders <http://interiders.com/> - Distributed under MIT - Keep th
- Added loadFromInput option (default: true) to load values given in the initial text input into the control.
- Added defaultMessage option (default: "") which is used for a default message div if the control creates the autohandler. The default message is no longer mandatory.
- Added sortResults option (default: false) which will sort autocomplete results by caption.
+
+### 0.10
+ - Decoupled TextboxList from ProtoMultiSelect so that TextboxList is fully functional on its own.
+ - Fixed ResizableTextbox so that it actually resizes the textbox and is much more intelligent about calculating the size.
+ - Changed TextboxList to use div and a instead of ul and li so that events can be contained within the control instead of being registered on the document object.
+ - Stopped the selected autocomplete result from being added if the input value does not match the result when enter is pressed.
+ - Fixed Home and End key events so that they don't scroll the page when pressed within the control.
+ - Added autoDelay option (default: 250) to specify the delay before the autocomplete results appear.
View
21 index.html
@@ -51,34 +51,21 @@
{
width: 500px;
padding: 5px 5px 6px;
- font: 11px "Lucida Grande", "Verdana";
border: 1px solid #999;
}
</style>
</head>
- <body id="test">
- <h1>Proto!MultiSelect 0.9</h1>
+ <body id="test">
+ <h1>Proto!MultiSelect 0.10</h1>
<div id="text"></div>
<form action="test_submit" method="get" accept-charset="utf-8">
<ol>
<li id="proto-ms-list" class="input-text">
<label>MultiSelect Input</label>
<input type="text" value="1,2" id="demo" />
- <!--
- * Adding the autocomplete div in the HTML is no longer necessary, as the control will create it.
- * You can add initial values by specifying them in the value list of the text input. If feed or fetchFile is provided
- to the control, the captions for the given values will be looked up from the data
- <div id="prot-ms-auto">
- <div class="default">Type the name of an argentine writer you like</div>
- <ul class="feed">
- <li value="1">Zuriel Barron</li>
- <li value="2">Osvaldo Tierra</li>
- </ul>
- </div>
- -->
</li>
- </ol>
+ </ol>
</form>
<div id="button_container">
<button onclick="alert($F('demo'));return false;">Get Values</button>
@@ -111,7 +98,7 @@
{ caption: "Ricardo Rojas", value: 22 }
];
- var control = new ProtoMultiSelect('demo', 'prot-ms-auto', {
+ var control = new ProtoMultiSelect('demo', 'demo-autocomplete', {
newValues: true,
regexSearch: false,
feed: json_feed,

0 comments on commit f552394

Please sign in to comment.