Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
Trying samples
posted

Im trying to implement similar to Metro sample

samplesbrowser/editors/editors-metro-theme

All editors use Metro theme, except button. When i place

 

<

 

 

button id="btnSubmit" type="submit" value='Submit'>Submit</button>

Metro style is not applied. On sample, this button rendered as

<button id="btnSubmit" class="ui-button-text-only ui-button ui-igbutton ui-widget ui-widget-content ui-corner-all ui-state-default" value="Submit" type="submit" role="button" aria-disabled="false">
<span id="btnSubmit_lbl" class="ui-button-text">Submit</span>
</button>

What im missing?

  • 190
    Verified Answer
    posted

    Found answer,
    Have to place

     

     

    <script type="text/javascript" language="javascript">
    $.ig.loader(function () {$("#btnSubmit").igButton({ labelText: $("#btnSubmit").val() });});</script>