jquery-labelauty
jquery-labelauty copied to clipboard
methods & callbacks
Are there any methods or callbacks available (check, uncheck, toggle, disable, enable, update, destroy, etc) ?
thanks
Not yet, but would be a great improvement.
Added to to-do list !
ok. looking foward to it.
+1 to this
So, please tell me specifically which callbacks you want, and next week I'll tag a new release :+1:
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
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.
I think alll the events are very usefull but the ifChecked and ifUnchecked events would be very appreciated.
Thanks
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).
+1
+1