Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reinitialize via js plugin of Kartik? #388

Open
strtob opened this issue Jun 14, 2023 · 0 comments
Open

How to reinitialize via js plugin of Kartik? #388

strtob opened this issue Jun 14, 2023 · 0 comments

Comments

@strtob
Copy link

strtob commented Jun 14, 2023

Hi,

I use this awesome kartik tools!

For serveral times, by using e.g. datecontrol or in the current case maskedinput I ask myself, how to reinitalize the plugins via js. In the following example, I change the mask via js. I've understood, that the name of the object containing the information for an input is stored in data-plugin-inputmask. I suggest I have to change the mask information and have to refresh the input field, but does this go?

       var inputField = $("#entitymasterdata-value_text");
       pluginInputMask = inputField.data('plugin-inputmask');
       pluginInputMask.mask = $type.find(':selected').data('hastextformat');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant