You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTML would look like this, please note that data-maska is now data-maska-raw and data-maska-tokens is data-maska-tokens-transform since it would otherwise clash with maska's main implementation:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
i needed a way to use predefined transforms while still initializing everything with data-attributes
I created a new thread but maybe this is relevant/related to @mrleblanc101 / #135
here is what i came up with, maybe this is interesting for someone else:
JS:
HTML (Example for IBAN Input):
Based on #135 's requirements I thought a little bit further and came up with the following implementation where you can define a per token transform:
JS:
HTML would look like this, please note that
data-maska
is nowdata-maska-raw
anddata-maska-tokens
isdata-maska-tokens-transform
since it would otherwise clash with maska's main implementation:Cheers.
Beta Was this translation helpful? Give feedback.
All reactions