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
620
Changing default CSS classes?
posted

The documentation for theming (https://www.igniteui.com/help/api/2017.1/ui.ignumericeditor#theming:ui-igedit-negative)

Class applied to the editing element of numeric editor when value is negative. The class is applied only when the editor is in display mode (no focus). Default value is 'ui-igedit-negative'.

seems to suggest that the default class applied to negative numbers can be changed from 'ui-igedit-negative' to something else.  Have I misunderstood this?  I can't see how to actually change this.


Parents
No Data
Reply
  • 18204
    Offline posted

    Hi AlistairWood,

    Thank you for posting in our forums!

    You can access the widget objects through the prototype.  Please see the following line as an example:

    $.ui.igNumericEditor.prototype.css.negative = "my-own-class";

    As long as you call this before any igNumericEditors are created, this should be fine.  Please be aware that this will apply to every igNumericEditor.

    If you have any further questions or concerns with this, please let me know.

Children