Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class AttributeInfo(val attribute: String) {
"x-on" to "Add listener",
"x-bind" to "Bind an attribute",
"x-mask" to "Set input mask",
"x-mask:dynamic" to "Set dynamic input mask",
"x-intersect" to "Bind an intersection observer",
"x-trap" to "Add focus trap",
"x-collapse" to "Collapse element when hidden",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ object AttributeUtil {
"caps-lock",
)

val maskModifiers = arrayOf(
"dynamic"
)

val intersectModifiers = arrayOf(
"once"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ class AutoCompleteSuggestions(val htmlTag: HtmlTag, val partialAttribute: String
addModifiers(directive, AttributeUtil.modelModifiers)
}

if ("x-mask" == directive) {
addModifiers(directive, AttributeUtil.maskModifiers)
}

if ("x-intersect" == directive) {
addModifiers(directive, AttributeUtil.intersectModifiers)
}
Expand Down