how should i add select input in col select ?
how should i add select input in col select ?
kuo0213
Posts: 5Questions: 1Answers: 0
Link to test case: http://live.datatables.net/vaquceda/1/
Description of problem:
I want to turn column().search into select input column().search
(https://datatables.net/forums/uploads/editor/4x/fan2zgsbzb71.png "")
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Your test case doesn't run. It doesn't have any HTML.
I'm not sure what the screenshot is highlighting for us. This example shows how to create column based select inputs. Is this what you are looking for?
Kevin
Link to test case: http://live.datatables.net/vaquceda/3/
Description of problem:
I want to turn column().search into select input column().search
The above is the official sample code. I want to do a drop-down menu search on the screen I designed. It is not clear how to turn column().search into input select column().search ![]
(https://datatables.net/forums/uploads/editor/it/ovsdlgl3xky5.png "")
Is this what you are looking for?
http://live.datatables.net/cesupacu/1/edit
Its based on the example I linked to.
Basically you create an event handler for the select input. In the event handler you call
column().search()
.Kevin
thanks for your help!!!
Link to test case:
http://live.datatables.net/cesupacu/1/edit
SORRY !! I have another question, the select input can use like google search ComboBox .
I don’t have an example but you should be able to use a combobox. Datatables doesn’t have any restrictions. Try updating the test case with what you want to use. If you have questions we can take a look at your updated test case.
Kevin
Link to test case: http://live.datatables.net/vaquceda/3/
Description of problem:
Hi. I have question .
How do Search position becomes middle.
I have try Dom, but it can’t change anything.