diff --git a/tutorials/cell-editor.html b/tutorials/cell-editor.html index 87df144..2108306 100644 --- a/tutorials/cell-editor.html +++ b/tutorials/cell-editor.html @@ -384,12 +384,19 @@

Creating <select }

Task two: DONE

Populating <select> with options

+<<<<<<< HEAD

In the previous step we implemented a function that crates <select> input and attaches it to DOM. You've probably noticed that we haven't written any code that would create <option> elements, therefore if we would display the list, it would be empty.

We want to be able to define an option list like so:

+======= +

In the previous step we implemented a function that creates the <select> input and attaches it to the DOM. + You probably noticed that we haven't written any code that would create the <option> elements, therefore if we + displayed the list, it would be empty.

+

We want to be able to define an option list like this:

+>>>>>>> c73a08268af5d4cd9aeaeb4fc8697e2701fe1d00
var hot = new Handsontable(document.getElementById('container'), {
   data: someData,
   columns: [
@@ -400,11 +407,9 @@ 

Populating <select> w ] });

There is no (easy) way to get to the value of selectOptions. 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 SelectEditor and each of them has it's - own option list. - It's even possible that two cells in the same column can have different option lists (cascade configuration - - remember?) + only populate the list with options once, if we do this in the 'init' function. + What if we have more than one column using SelectEditor and each of them has it's own option list? + It's even possible that two cells in the same column can have different option lists (cascade configuration - remember?) It's clear that we have to find a better place for the code that creates items for our list.

We are left with two places prepare() and open(). The latter one is simpler to implement, but as we previously stated,