Forum Stats

  • 3,853,532 Users
  • 2,264,231 Discussions
  • 7,905,384 Comments

Discussions

how to print $current object in oj table

Milan Pandya-Oracle
Milan Pandya-Oracle Member Posts: 3
edited Feb 7, 2019 3:41AM in Oracle JET

Hi All,

I am trying to dump $current object to see what structure + data values it holds. I am following oj table cookbook example for this. http://jet.us.oracle.com/jetCookbook.html?component=table&demo=templateSlotTable

In demo.js, I changed block of line# 37 with this one.

<template slot="ratingCellTemplate">

            <p><oj-bind-text value='[[$current]]'></oj-bind-text></p>

             <oj-rating-gauge value='[[cell.data]]' readonly style="width:60px;height:15px;">

             </oj-rating-gauge>

          </template>

Unfortunately, it prints [object Object] as output.

Does anybody have any idea on how to print objects on html page through oraclejet way?

Thank you

Tagged:

Answers