Jump to content

ips.ui.dialog suggestion


CodingJungle

Recommended Posts

Posted

ips.ui.dialog first off i would like to say, i love this widget, its amazing all it can be made to do, but there is one suggestion i would like to make, add a 'not' option, so if i click on the "not" element, it doesn't trigger, example:

<a href='http://myurl.com/myapp/' data-ipsDialog data-ipsDialog-not='#otherthing'>
  <div id='otherthing'>some text</div>
  <div id='notOtherThing'>some more text</div>
</a>

this way if i click on anything outside of #otherThing, it will activate the dialog,  but if i click inside #otherThing, it will not do anything. make sense? I can do this easily with programmatically using the dialog, but always thought it would be a useful feature to have for the widget. 

Posted
2 minutes ago, Rikki said:

Could you give an example of a real-world usage of that? I'm puzzled why you'd want to trigger a dialog on a link, but not the whole link.

it doesn't necessarily have to be a link 🙂 i just used a link in my example, in a real world example that i use (well would use if it was capable of it 🙂 ). 

example1.thumb.jpg.c5128db64593a65de24d69d1c55f965c.jpg

lets say i want almost all of the white box when clicked to trigger the dialog, but for the user icon on the whitebox, i want it to do something else, other than open up the dialog or do nothing at all 🙂.  

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...