Example of dynamically adding/removing Tabs

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    10 posts
    Member since:
    Jun 2014

    Posted 23 Oct 2015 Link to this post

    My goal here is to be able to dynamically add and remove tabs.  I'd like to use a close icon on the tab to trigger the removal.  A special plus tab at the end would be used to add new tabs.  The jsfiddle below is my attempt to do this but I'm noticing the content is getting mixed with the tabs as they're being removed.  Can anyone help with what I'm doing wrong or perhaps suggest a better approach?  Thanks.

    http://jsfiddle.net/kturner75/o0g4e5ct/
  2. Kevin
    Kevin avatar
    10 posts
    Member since:
    Jun 2014

    Posted 23 Oct 2015 Link to this post

    Ok, I found an example of where closest function was used to find the tab li element to use for remove.  That fixed the problem.

    http://jsfiddle.net/kturner75/o0g4e5ct/

  3. Kendo UI is VS 2017 Ready
Back to Top