El Miércoles, 20 de febrero de 2013 11:53:12 Cassio Costa escribió:
> Someone could make an example with jquery masked input + AS (3.3.0.rc2) +
> Rails (3.2), because I'm not able to do, I'm still new to AS.
> I've tried to follow this example but it did not work!
> 
> https://groups.google.com/forum/#!searchin/activescaffold/masked$20ianput/ac
> tivescaffold/WsPVaAT3Pds/ncvHhmQ4vjwJ

I haven't tested but I think it will work:

#controller
conf.columns[:masked_column].css_class = 'masked'

#application.js
$(document).ready(function() {
  $(document).on('keyup', '.active-scaffold .masked input', function(event) {
    JS code to mask input
  });
});

If you want to create a form_ui instead of using css_class, like in that 
example, you only need to set a class for the input and bind the event.

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to