CCole / RESTConsumption

Consuming RESTful service with angular and styling with cbp theme
0 stars 0 forks source link

Create multi step form that includes inputs corresponding to Staff_Cred tables #18

Closed CCole closed 7 years ago

CCole commented 7 years ago

The form shall be multistep and...

CCole commented 7 years ago
CCole commented 7 years ago

Consider this approach for multi step form utilize ui router and its nested states and different views per state https://scotch.io/tutorials/angularjs-multi-step-form-using-ui-router

CCole commented 7 years ago

cbp styleguide on wizards: https://us-cbp.github.io/cbp-style-guide/docs/patterns/wizards.html

CCole commented 7 years ago

angular routing - http://www.w3schools.com/angular/angular_routing.asp

CCole commented 7 years ago

ngAnimate The ngAnimate module adds and removes classes.

The ngAnimate module does not animate your HTML elements, but when ngAnimate notice certain events, like hide or show of an HTML element, the element gets some pre-defined classes which can be used to make animations.

directives adds a ng-enter class value when they enter the DOM, and a ng-leave attribute when they are removed from the DOM.

ngAnimate Gotchas make sure you keep your version of angular and angular-animate in sync. a note on installing an older version of a package

css keyframe animation syntax keyframes rule

ng-class examples

CCole commented 7 years ago

On angular module system

CCole commented 7 years ago

html inside a view injected with ng-view does not properly render mdl-textfield--floating-label http://stackoverflow.com/questions/31638890/mdl-textfield-not-taking-ngmodel-changes-into-account/40781433#40781433

integrating angular and material design lite http://stackoverflow.com/questions/31278781/material-design-lite-integration-with-angularjs

CCole commented 7 years ago

Material Design Lite will automatically register and render all elements marked with MDL classes upon page load. However in the case where you are creating DOM elements dynamically you need to register new elements using the upgradeElement function.

-Material Design lite docs

things to consider

CCole commented 7 years ago

Animations work however: the responsive sizing of the material design lite card allows for both views to be visible in the card at the same time, which expands the height of the card.

CCole commented 7 years ago

new views need to be positioned absolute when entering and leaving. Also card needs to be set at a minimum height.

CCole commented 7 years ago

Align inputs in a single column

Forms should never consist of more than one column. One of the problems with form fields in multiple columns is that your users are likely to interpret the fields inconsistently. If a form has horizontally adjacent fields, the user must scan in Z patterns, slowing the speed of comprehension and muddying the clear path to completion. But if a form is in a single column, the path to completion is a straight line down the page.

-Designing More Efficient Forms One Column vs. Multiple Columns