Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Inner HTML in Java Script

$
0
0

Hi guys, I am a baby developer. I am trying to have a bold heading and the values are passed through js file .hbs file has no reference to the heading.

model() {
  const ps = this.Session;
  var key = "xyz";
  var val = "pqr";    
   return {
    columns: [
      {
        name: ps.translate("Parameter.abc),
        valuePath: "abc",            
      },
      { 
        
        name: ps.translate(key),
        valuePath: "xyz",
      },
      {
        name: ps.translate(val),
        valuePath: "pqr",
      },
        
      {
          name: "",
          valuePath: "id",
          cellComponent: "update-parameter"
      },
    ]

The Headings would be abc, xyz, pqr. I tried using the command document.getElementById(“valuePath”).innerHTML = “Sample text”; but it is giving me an error " document.getElementById(”") is Null. Not sure where I am going wrong. Is there any other way to do?

Thanks for helping!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles