Results 1 to 2 of 2

Thread: Ext.button: remove all default css classes and add a single class

  1. #1

    Question Ext.button: remove all default css classes and add a single class

    Hey,

    I want to add a button which uses only one css class. The button mustn't use all the Ext.JS classes (x-btn....). How do I remove all default classes and add a single individual one? Thanks!!

    Ext.define('myApp.view.basic.siteNavigationElement' ,{
    extend: 'Ext.button.Button',
    alias : 'widget.siteNavigationElement',
    renderTo: Ext.get('upperBarLeftSideLinks'),
    removeClass: 'x-btn', // does not work
    addClass: 'myButtonClass' // does not work
    });

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Change the baseCls config. Or if you want more control, change the renderTpl
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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