Opened 8 years ago

Last modified 8 years ago

#16680 new New Feature

Possibility to alter widget structure after initialization

Reported by: Hannes Kirsman Owned by:
Priority: Normal Milestone:
Component: UI : Widgets Version: 4.5.9
Keywords: Cc:

Description

Steps to reproduce

Load the plugin I've attached to this ticket. It's a plugin to work with jQuery UI Accordion. It has Add and Remove button. Latter does not have any events at the moment.

Expected result

After clicking on Add I would expect the new html be editable but it's not. Only way to make it editable is toggle Source button. I've tried everything so I'm either not doing it properly (and I don't want the whole accordion to be editable) or there's no such feature yet.

Actual result

The html is appended but I can't edit it.

Attachments (1)

plugin.js (4.0 KB) - added by Hannes Kirsman 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by Hannes Kirsman

Attachment: plugin.js added

comment:1 Changed 8 years ago by Hannes Kirsman

In other words I would like to know how to refresh widget or it would be even nicer to have editable that would work on n+1 elements if they exist. What I mean is that

.foobar__col

would work for both divs in this template

<div class="foobar">
  <div class="foobar__col"></div>
  <div class="foobar__col"></div>
</div>

And if another

 .foobar__col

would be added to dom, then it would work automatically.

Last edited 8 years ago by Hannes Kirsman (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy