title: How to change div style width for dynamically div tag in html in Javascript?
body: <p>I have <code>&lt;span&gt;title&lt;/span&gt;</code> inside of <code>&lt;div&gt;... &lt;/div&gt;</code>.</p>
  
  <p><strong>title</strong> is binding dynamically. My problem is Title text is <strong><em>not showing full text</em></strong> because some <code>&lt;div&gt;</code> tags are created dynamically with <code>Style="Width:150"</code>.</p>
  
  <p>If change div tag property <code>width: auto</code>, my Title text was displaying properly after editing div with property in developer tool.</p>
  
  <p>How to change to as below to <code>&lt;div style=width:auto"..&gt;</code>?</p>
  
  <pre><code>template: function (o) {
       return "&lt;div&gt; &lt;span&gt;" + o.Title + "&lt;/span&gt; &lt;/div&gt;"
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/UZW5O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UZW5O.png" alt="html tag"></a></p>