2

How I can simplify line 3 (onChange property):

Input do
  name: \input
  onChange: (event, value) ~> @limitInput { type: \string }, event, value
Developia
  • 3,928
  • 1
  • 28
  • 43

1 Answers1

3

You can use a bound partial application, documented here. Example:

Input do
  name: \input
  onChange: @~limitInput({type: \string}, _, _)
Aria
  • 386
  • 1
  • 3
  • 15