Skip to content

Masked input with imask.js#118

Open
simonbuehler wants to merge 6 commits into
tanthammar:masterfrom
simonbuehler:masked_input
Open

Masked input with imask.js#118
simonbuehler wants to merge 6 commits into
tanthammar:masterfrom
simonbuehler:masked_input

Conversation

@simonbuehler
Copy link
Copy Markdown
Contributor

hi,

learned that commiting fixes to master is a bad idea, this is a extra branch replacing #111 pull request


first shot at the integration of imask.js ( https://imask.js.org/ ) into the input field, works for me

Input::make('datemasked')->maskOptions(
                "{mask: Date, lazy: false}"
            )

Input::make('Masktest', 'masktest')->rules('required')->maskOptions(
                    "{mask: '(00)00-00-00',  lazy: false,  placeholderChar: 'x' }"
                ),

possible enhancements:

  • Get either the masked or unmasked value back from the imask object and not the input value
  • make including js configurabe
  • add docs ;)

should fix the unneeded  js load

(cherry picked from commit 19dcea6)
(cherry picked from commit b741c05)
# Conflicts:
#	resources/views/components/input.blade.php
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

Successfully merging this pull request may close these issues.

1 participant