PRJ – 16

Tuesday 25/08: 10AM – 3:45PM

Today I had the chance to revisit the functionality I was working on a while ago which lets you print multiple sheets at once. One of the other devs had a look and fixed the CSS pagebreak issue I had as well as doing some other little tidy ups on my code so it’s close to completion! Now I just need to provide each sheet with it’s own slider controls to decide where the product image will go on the sheet. At first it only had one set of controls which changed the image on all sheets you wanted to print which is not what we want so I extracted the controls and sheets into their own component so now each sheet has it’s own controls and image placement. How ever now I need to somehow get this data into the component which shows when you press print.

It’s a little difficult to explain but basically there are two components which wrap around the other components, PrintHide and PrintRoot. PrintHide holds everything you don’t want printed when window.print() is called and displays it when you are not printing. PrintRoot displays only what you want to be printed when you press the print button but hides it otherwise. Currently the sheets you want to get printed are being mapped in both PrintHide as well as PrintRoot for when you actually press print, however now that the image placement is being done in the child component in PrintHide I’ll need to somehow get this data and apply it to the sheets in PrintRoot since they are seperate entities. Tomorrow I can hopefully get this sorted out.

The rest of the day was spent on two meetings. One meeting was to discuss and clarify how we wanted to move an existing application into the new API as a service. The other meeting was about how we want to go about extending the functionality of a quote generator app. These meetings helped me get a better understanding of some of the business logic and how it relates to the applications we are working on.

Leave a comment

Design a site like this with WordPress.com
Get started