umd/fieldstack.js
// action triggers update state and can be overidden by the user
action triggers update state and can be overidden by the user
action triggers update state and can be overidden by the user
function generateFormActions() {
          var actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
          return {
            onChange: actions.onChange || function (fieldName, event) {
              updateValue$$1(fieldName, event.target.value);
            }, 
            onToggleMultiSelect: actions.onToggleMultiSelect || function (fieldName, value) {
              toggleMultiSelect$$1(fieldName, value);
            }, 
            onKeyDown: actions.onKeyDown,
            onKeyUp: actions.onKeyUp,
            onFocus: actions.onFocus, 
            onBlur: actions.onBlur, 
            onInterval: actions.onInterval, 
            onNextInput: actions.onNextInput, 
            onRevertInputFocus: actions.onRevertInputFocus 
          };
        }
function generateFormActions ( ) { var actions = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ; return { onChange : actions . onChange || function ( fieldName , event ) { updateValue$$1 ( fieldName , event . target . value ) ; } , onToggleMultiSelect : actions . onToggleMultiSelect || function ( fieldName , value ) { toggleMultiSelect$$1 ( fieldName , value ) ; } , onKeyDown : actions . onKeyDown , onKeyUp : actions . onKeyUp , onFocus : actions . onFocus , onBlur : actions . onBlur , onInterval : actions . onInterval , onNextInput : actions . onNextInput , onRevertInputFocus : actions . onRevertInputFocus } ; }
action triggers update state and can be overidden by the user
action triggers update state and can be overidden by the user
// actions arg is an object of user defined action functions that overides default actions // update state for single value fields // update state for multiselection field // (fieldName, curValue)=>{},// Do something when a field comes into focus // (fieldName, curValue)=>{}, // Do something when a field blurs // (fieldname, curValue)=>{}, // Do something on time interval // (fieldName, curValue)=>{}, //Do something when "enter" key is hit // (fieldName, curValue)=>{}, // Do something when the previous field is back in focus