HOW TO HIDE/UNHIDE CLEARICON FROM TEXTBOX IN SENCHA?

Royce Roy

Total Post:149

Points:1043
Posted by  Royce Roy
 1338  View(s)
Ratings:
Rate this:
Hi Expert!

I would like to hide clearicon from textbox in sencha control through code. How to do it? Please provide sample code.

Thanks in advance. 

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: How to hide/unhide clearicon from textbox in sencha?

    Hi Royce,


    You can add this to you global CSS

    .x-field-clearable.clear-icon-hidden .x-field-input .x-clear-icon {
      display: none;
    }

    and then when you want to hide the clear icon of a field you just get your field and do

    field.addCls('clear-icon-hidden');

    Hope this helpful for you.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!