Is there a way to clone editor (deep one making a complete copy but not connected with the original) ?
Hi @Lapointe ,
I'm not understanding the question, sorry. You can create multiple Editor instances - which is useful if you have multiple tables. Can you explain what you mean by cloning, and what the use case would be, please.
In fact I need to use a custom confirm box, using current editor with lot of hidden fields.
I want to clone editor instance to just have to change field visibility at opeing (and reactors ON, ...) but not with need to reconfigure editor afetr using it as confirm box.
Using clone allow to get the same fields link, ... witch is very faster and efficient.
So yes, I think about clone, not multiple, or multiple with same properties (a clone) just doing ... tmpEditor=clone(editor) or editor.clone() or ...
No sorry - there currently isn't a clone method. I don't think we've been asked for one before to be honest. The closest would be to create a new Editor instance than then use order() on the original Editor and then add() to add new fields to the target instance.
In fact a clone should assign fields and connected record, and set i18n and ... nor a new with get - add
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.