New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working With Multiple Inputs #80
Comments
ok, first of all you should set
And finally, when you click on another row you call
have a look on new record creation Also I think you would like to hide submit buttons - just set Let me know in case of more questions. |
Thanks vitalets, will take a look. |
Still having a little trouble. I am guessing I need to bind some click event then have the row selection. $row.find('a').editable('show'); I am applying this to all editable elements for now. Contains some PHP variables, but these are set correctly after looking at source. (function($){
$.find('a.editable').editable({
type: 'select',
tpl: '<select></select>',
inputclass: '$inputClass',
prepend: '$prepend',
sourceCache: '$sourceCache',
showbuttons: false,
onblur: 'ignore'
}).editable('show');
})(jQuery); |
I've reserched this more and unfortunatly not found an elegant solution with current version. My testing fiddle: |
Thanks Vitalets for all the help. Really appreciate the time. Hopefully we can find a good solution. |
Issue is in fact hte same as #74 |
Hey Vitalets, This looks very promising and very nice UI. I want to use but I am limited because of the fact that we can only change one row at a time. Can you please let me know if you were able to proceed with this http://jsfiddle.net/xBB5x/348/ ? Also, it will be good to support custom input types like timepicker etc. Please let me know. Thanks, |
hi @usubhash |
Hi Vitalets, |
Do you mean something like this: http://jsfiddle.net/xBB5x/2275/ |
Any progress with a way to save? Even a hack to get the value would be appreciated. |
I like many stumbled across this when trying to implement this. With little to no help from my google fu, I made this quick and dirty workaround. Please bear in mind that this was done with enablebuttons: false. First, we set up some options for our editables;
Then we wire up the events. I have done this via a row click, but the premise is simple.
I then wired up an event to show the editables, and added a manual submit on keydown (I also wired up an event on click elsewhere but the current row).
And then to grab the value of the saved inputs;
The event fires for each editable saved this way, so its not the cleanest solution - but it works none-the-less. It also fires the first editables success event twice? Not sure why and its too late to fix it! |
Hi i am new for jquery i am using x-editable to update multiple filed like address.js directly to mongodb |
Ok, I think this falls in line with much of these. |
Really love this. Been very fun to play around with. I am stuck with a very circumstantial scenario though I need some help with.
I have a large amount of data being outputted in a table format. Each row in the table is related to a specific record id. Each column in the row is a specific input type depending on the type of data (input for text, input for textarea, select, date, ect.)
The behavior I am looking for is being able to click one of the anchor tags in the column fields and changing all the anchor tags in the associated row to their correct input type. X-editable seems to work with one element at a time, unless of course there is a way to override this through some parameter control. The reason why I want all fields to show is to convey the focus that your editing everything for this one row/record. As soon as the focus is moved away from the row through a tab (we are at the last field in the row) or click event (we click a tag on another row) I like the current fields to submit.
I would really appreciate any help to point me in the right direction.
The text was updated successfully, but these errors were encountered: