techouse / intl-date-time

International DateTime for Laravel Nova
MIT License
57 stars 21 forks source link

Please allow devs to add custom placeholders, or none placeholder #6

Closed wemersonrv closed 5 years ago

wemersonrv commented 5 years ago

Hello.

Please allow devs to add custom placeholders, or none placeholder. See my issue:

Here on Brazil we say format as (DD/MM/AAAA) not (DD/MM/YYYY)... obviously when coding, will use the right compatible pattern DD/MM/YYYY but when show it to users in frontend, need to inform DD/MM/AAAA so they will understand. But the field not allow custom placeholder and add the mask as it...

So i add a ->help('DD/MM/AAAA') to give a tip to users, but tis is weird... because it renders both patterns:

IntlDateTime::make('Nascimento', 'nascimento')
            ->dateFormat('DD/MM/YYYY')
            ->help('DD/MM/AAAA')

See image below: intl2

techouse commented 5 years ago

The placeholder is actually tied to the mask. Will look into it.

techouse commented 5 years ago

Available from v1.1.2 onward.