EasyUI Forum
September 14, 2025, 04:49:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combobox, capture "Create New"  (Read 4811 times)
mshaffer
Newbie
*
Posts: 21


View Profile
« on: December 09, 2016, 05:51:50 PM »

I am creating a combobox from a text input using external data... If the autocomplete is false, but the user typed something, I want to use that information to create a new (in this case) project, append to the beginning of the data...

Code:
var createNewProject = "";

within the constructor, onchange, I capture if the value hasn't changed... empty is a custom function ...

Code:
onChange: function (newValue, oldValue) {
if(!empty(newValue))
{
createNewProject = newValue;
}
}

I have tried the several handlers and haven't figured out HOW to trigger this new value to update the select, nor is it obvious how to add a single new value...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!