Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LP: 10. Lesson 1: Oracle JET 4.x - Lesson 1 - Part 9: Oracle JET Cookbook (Gauges and Number Format

neounixOct 18 2018 — edited Oct 20 2018

Hi Again,

Have completed

  • 10. Lesson 1: Oracle JET 4.x - Lesson 1 - Part 9: Oracle JET Cookbook

and using the server loadavg.js code I wrote (in an earlier post in this community( and have been adding gauges.

All is great so far, and I'm loving JET, but have ran into an issue.

Basically, I have posted the js and html code at the link below (because code formatting is easier to read, sorry to post offsite):

https://www.unix.com/web-programming/280151-10-lesson-1-oracle-jet-4-x-lesson-1-part-9-oracle-jet-cookbook-gauges-ints.html

Running into a roadblock because I have tried numerous ways to parseInt() in the ko.observables() and looked into the JET cookbook

docs, but I cannot find any JET methods to insure these values show up as INTs and no params in the components to force INTs.

Whatever normally works for me in Javascript will not force the bottom three gauges to show ints instead of floats in the gauges.

What am I doing wrong as a noob at JET?

Screen Shot 2018-10-18 at 1.55.51 PM.png

Comments
Post Details
Added on Oct 18 2018
5 comments
441 views