Input Widget: limit character input to 127

Is it possible to limit the character input that I cannot enter more than 127 characters?

I'll add a property for that, meanwhile this script can truncate the value when submitted:

// onValue
if (typeof value === 'string' && value.length > 127) {
  set(this, value.substr(0,127))
}

Many thanks... the property will be great.