HomePhabricator

Add an infusable PHP implementation of the NumberInputWidget

Authored by Mainframe98 on Apr 12 2018, 12:45 PM.

Description

Add an infusable PHP implementation of the NumberInputWidget

A demo is available on the PHP tab of the demo, similar to the
demos of the JavaScript widgets.

Make JS NumberInputWidget set 'step', 'min' and 'max' attributes
for consistency. This also allows browsers to validate the value
(which duplicates our validation code, but this is okay).

Bug: T194089
Change-Id: Ib4cc098ab5466fac7d046ee39b72037aadecbb9f