Search Type: Posts; User: droessner

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    408
    +1
  2. You can access the paste data from the event:



    editor.getEditorBody().onpaste = function (event) {
    console.log(event.clipboardData.getData('text'));
    };
  3. Yes, you can add an itemId to the tab using the tabConfig property. Take a look at the documentation for http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.tab.Panel under the Controlling Tabs section.
    ...
  4. You can add a selectionchange listener to your grid and then set the button to be enabled/disabled based on the selections in the grid. The second parameter will be an array of all the selected...
  5. Here's a working example:

    48a
  6. You can use the scrollIntoView method: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.dom.Element-method-scrollIntoView

    Here's an example:

    46t
  7. Sorry, I was testing with 4.2.1. I just checked again and just adding the following worked for me under 4.0.7.



    Ext.Date.useStrict = true;
  8. Ext.define('Overrides.form.field.Date', {
    override: 'Ext.form.field.Date',
    useStrict: true
    });
  9. You just need to get rid of the inputType: '1' config on your checkbox definition.
  10. Since you are adding the window to the panel body, the modal is only over the body. Instead of adding the window to the panel body, you could add it to the panel's owner component so that it covers...
  11. If you want to constrain the window to the entire panel, you can add the following config to your window:



    constrainTo: me.getEl()
  12. Replies
    2
    Views
    1,086
    Something like this?

    3si
  13. Replies
    2
    Views
    594
    Take a look at the grid summary feature: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.feature.Summary
  14. Replies
    4
    Views
    836
    It will calculate the max column width based on the data that is loaded in the store on the client side.
  15. Replies
    4
    Views
    836
    ExtJS provides a method that does this for you. Your plugin can be simplified to something like this:



    Ext.define('my.ColumnAutoWidth', {
    extend: 'Ext.AbstractPlugin',
    alias:...
  16. Replies
    2
    Views
    407
    You can update the data-qtip attribute directly. If it was defined in the labelAttrTpl then you could do something like this:



    combo1.labelEl.set({
    'data-qtip': 'New tooltip'
    });
  17. Replies
    7
    Views
    2,001
    Since 4.2.0 you can use the dock config for this:

    http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.feature.Summary-cfg-dock
  18. You should look into using a tool like JSLint (http://jslint.com/) or JSHint (http://jshint.com/). These tools will help identify errors and potential problems in your code.

    Some IDE's have...
  19. Take a look at the beforeprefetch and prefetch events. These events are fired when records are prefetched in a buffered store.
    ...
  20. IE8 does not implement the forEach method on Array's natively.

    This should fix it:


    Ext.Array.forEach(Ext.getCmp('formId').query('.field'),function(c){c.setReadOnly(true);});...
  21. Replies
    1
    Views
    309
    Are you using 4.2.1? This was a bug that was introduced in 4.2.1. The bug id is EXTJSIV-9957. This has been fixed in 4.2.2.


    See http://www.sencha.com/forum/showthread.php?264529
  22. Replies
    2
    Views
    621
    You can specify a group header template. See http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.feature.Grouping-cfg-groupHeaderTpl
  23. Replies
    2
    Views
    770
    I also use WebStorm. Great IDE for JavaScript development.
  24. Replies
    3
    Views
    5,126
    You can add a load listener to your store and insert the record into the store. Something like this:



    store: {
    autoLoad: true,
    fields: ['Value', 'Text'],
    proxy: {
    type:...
  25. It sounds like you just need to change the gap between label and printer to have flex: 1 instead of a fixed width.
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4