Lego plugin to set a model value on input