Skip to content

Commit

Permalink
Spelling and grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dflock committed May 8, 2015
1 parent 81b194a commit c73a082
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tutorials/cell-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,9 @@ <h4 id="creating-select-input-and-attaching-it-to-dom">Creating <code>&lt;select
<p>Task two: <strong>DONE</strong></p>
<h4 id="populating-select-with-options">Populating <code>&lt;select&gt;</code> with options</h4>
<p>In the previous step we implemented a function that creates the <code>&lt;select&gt;</code> input and attaches it to the DOM.
You&#39;ve probably noticed
that we haven&#39;t written any code that would create the <code>&lt;option&gt;</code> elements, therefore if we
You probably noticed that we haven&#39;t written any code that would create the <code>&lt;option&gt;</code> elements, therefore if we
displayed the list, it would be empty.</p>
<p>We want to be able to define an option list like so:</p>
<p>We want to be able to define an option list like this:</p>
<pre><code class="lang-js">var hot = new Handsontable(document.getElementById('container'), {
data: someData,
columns: [
Expand All @@ -401,9 +400,8 @@ <h4 id="populating-select-with-options">Populating <code>&lt;select&gt;</code> w
]
});</code></pre>
<p>There is no (easy) way to get to the value of <code>selectOptions</code>. Even if we could get to this array we could
only populate
list with options once, what if we have more than one column using <code>SelectEditor</code> and each of them has it&#39;s
own option list.
only populate the list with options once, if we do this in the 'init' function.
What if we have more than one column using <code>SelectEditor</code> and each of them has it&#39;s own option list?
It&#39;s even possible that two cells in the same column can have different option lists (cascade configuration -
remember?)
It&#39;s clear that we have to find a better place for the code that creates items for our list.</p>
Expand Down

0 comments on commit c73a082

Please sign in to comment.