title: How to apply style to a label element dynamically in SAPUI5
body: <p>I am new to SAPUI5 and am trying to apply a few styles to the label element. Below is the piece of the code in the controller.        </p>
  
  <pre><code>onAfterRendering: function() {
      var busFunId = this.getView().byId("busFun");
      jQuery.sap.byId(busFunId.getId()).parent().css("width", "20%");
  },
  </code></pre>
  
  <p>Below is the line of code for the label element in view.xml.</p>
  
  <pre><code>&lt;Label text="Business Function" id="busFun"/&gt;
  </code></pre>
  
  <p>Here, label element is rendered within a <strong>div</strong> with default css classes. I am trying to adjust the width by applying on the <strong>div</strong> element, the parent of the label element. </p>
  
  <p>This is not taking effect. Please share a solution if anyone have faced the same.     </p>
  
  <p><strong>Rendered HTML:</strong></p>
  
  <blockquote>
  <pre><code>&lt;div class=""&gt;&lt;label id="busFun" /&gt;sample&lt;/label&gt;&lt;/div&gt;
  </code></pre>
  </blockquote>
  
  <p><strong>Expected HTML:</strong></p>
  
  <blockquote>
  <pre><code>&lt;div class="" style="width:20%"&gt;&lt;label id="busFun" /&gt;sample&lt;/label&gt;&lt;/div&gt;
  </code></pre>
  </blockquote>