vapor-community / HTMLKit

Create and render HTML templates with HTMLKit
MIT License
404 stars 21 forks source link

missing data function on Input #91

Closed onepayclick closed 2 years ago

onepayclick commented 2 years ago

Hi,

I was able to do this back on version 2.1.0 image

I searched around the codebase but it doesn't seem to be a way to add custom data attributes like data-inputmask="'alias': 'phone'"

mattesmohr commented 2 years ago

Thats true. The .data-* modifier does not exit anymore. Use the .custom modifier instead, like:

Input()
.custom(key: "data-inputmask", value: "\'alias\': \'phone\'")

That should do.