jquery-labelauty icon indicating copy to clipboard operation
jquery-labelauty copied to clipboard

methods & callbacks

Open pcout opened this issue 11 years ago • 10 comments

Are there any methods or callbacks available (check, uncheck, toggle, disable, enable, update, destroy, etc) ?

thanks

pcout avatar Sep 23 '14 12:09 pcout

Not yet, but would be a great improvement.

Added to to-do list !

fntneves avatar Sep 23 '14 13:09 fntneves

ok. looking foward to it.

pcout avatar Sep 23 '14 14:09 pcout

+1 to this

pcout avatar Dec 05 '14 01:12 pcout

So, please tell me specifically which callbacks you want, and next week I'll tag a new release :+1:

fntneves avatar Dec 05 '14 08:12 fntneves

The callbacks would be:

ifClicked user clicked on a customized input or an assigned label

ifChanged input's checked or disabled state is changed

ifChecked input's state is changed to checked

ifUnchecked checked state is removed

ifToggled input's checked state is changed

ifDisabled input's state is changed to disabled

ifEnabled disabled state is removed

ifDestroyed customization is just removed

pcout avatar Dec 06 '14 04:12 pcout

I was thinking the following:

The destroy callback makes sense, but I think that you can apply those events directly to the input, once it still exists. Anyway, are you looking for a simplified way, for doing it when input have no ID's ?

Maybe I should remove the auto-generated ID's in a future v2.

fntneves avatar Dec 16 '14 22:12 fntneves

I think alll the events are very usefull but the ifChecked and ifUnchecked events would be very appreciated.

Thanks

pcout avatar Dec 17 '14 00:12 pcout

But you still can use this:

$(".labelauty").click( function(){
  if( $(this).is(':checked') )
    alert("checked");
});

Yes, they are, but most of them can be defined directly to the input (except the destroy event that refers to plugin, exclusively).

fntneves avatar Dec 17 '14 09:12 fntneves

+1

lenamtl avatar Dec 23 '14 14:12 lenamtl

+1

askie avatar Dec 27 '14 00:12 askie