Results 1 to 5 of 5

Thread: remove styling property from component

  1. #1
    Sencha User
    Join Date
    Jan 2014
    Location
    India
    Posts
    110
    Answers
    2

    Default remove styling property from component

    Hi All,
    I want to remove some styling property from component, like i want to remove z-index property from toolbar component, is this possible in sencha.


    Thanks,
    sandy

  2. #2
    Ext JS Premium Member
    Join Date
    Jul 2011
    Location
    Hyderabad, India
    Posts
    99
    Answers
    15

    Default

    Hi Sandy,

    There are many ways of overwriting the css of sencha.
    1. cls
    2. style
    3. Overwrite in your custom css file
    Eg:
    Code:
    .x-panel-body-default {
        background: none;
    }
    Thanks,
    Md Naveed
    \m/

  3. #3
    Sencha User
    Join Date
    Jan 2014
    Location
    India
    Posts
    110
    Answers
    2

    Default

    Yup, but sencha already provided some styling to control, i want to remove it totally from control, is that possible to style property

  4. #4
    Ext JS Premium Member cmeans's Avatar
    Join Date
    Jun 2010
    Location
    Chicago, IL USA
    Posts
    117
    Answers
    3

    Default

    Sencha styles are almost exclusively supplied via classes.

    The "style" property on an element will generally override what's in an associated class.

    So, something like:

    HTML Code:
    style: 'z-index: inherited'
    should do the trick. You may need to include "!important".

    -Chris

  5. #5
    Sencha User
    Join Date
    Jan 2014
    Location
    India
    Posts
    110
    Answers
    2

    Default

    Oh!! okay thanks

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •