Search Type: Posts; User: Stuart-SwarmOnline

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Hi,

    I have a package which includes various models and one override to the Ext.data.Model class. My package structure is as follows:



    - MyPackage
    - overrides
    - data
    ...
  2. I think you have to explicitly include a separate plugin for console.logs to show up in XCode. Try this one - https://github.com/apache/cordova-plugin-console/blob/master/doc/index.mdSorry, it...
  3. Replies
    7
    Views
    500
    The Ext JS 4.0 CDN also seems to be down just now - http://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js. It was working a couple of hours ago however.Is there any news on this ticket?
  4. You might want to take a look at packages (http://docs.sencha.com/cmd/5.x/cmd_packages/cmd_packages.html it's an Ext JS guide but the principles are the same I think).

    Using packages means you can...
  5. Hi,

    I'm just starting an Ext JS 5 upgrade from 4.2 and have hit a problem with an override I have, adding some static methods to the Model class. The basic code is below:


    ...
  6. Refs can't have itemIds in them. I'm not sure of the reasoning for this but that's the way it is. If you really want to target using itemIds you could use the property syntax like [itemId="myItemId"]
  7. Hi Phil,

    Thanks a lot for your reply.

    I updated the package's sencha.cfg file with "package.sass.namespace=MyPackage" (rather than "Ext" like it was before). Rebuilding the package and the app...
  8. Yea, I missed out the super class call. You should be able to use the this.callParent(arguments) call to be a bit shorter.The problem is that the Ext.define call is happening in the global scope and...
  9. You could add the event handler in the initComponent method using the 'on' method of the store so that you can scope the handler function to the Grid and not the Window.




    initComponent:...
  10. Hi all,

    I have a simple Workspace set up with an App and one Package. The package has one controller and one view. The view has a SCSS file associated with it located in the 'sass/src' folder...
  11. By updating the quantity in the record the list with automatically refresh to display the new values and so will redraw the images and potentially reload them. Perhaps you can look into caching the...
  12. I don't think it's possible right out the box but you can integrate the Camera class which should talk to the native camera.

    http://docs.sencha.com/touch/2.4.0/apidocs/#!/api/Ext.device.Camera
  13. Your reference to 'Araripina.view.TabPrincipal' is the classes name and not an instance of the class. You also can't use this in your 'up' call as this isn't its alias (or xtype).
  14. The controller still doesn't have a 'push' method:




    Ext.define('Araripina.controller.PrincipalCtrl', {
    extend: 'Ext.app.Controller',
  15. You're into your event handler now so the handler is attached correctly. Now the issue is the use of 'push' method which doesn't exist in your controller class.
  16. I meant replace the ComponentQuery selector in the controller. Try something like:



    config: {
    control: {
    "button": {
    tap: 'onMybuttonTap'
    }
    ...
  17. I don't think you can use itemIds in a control's ComponentQuery selector. Try it with just 'button' and see if that works.
  18. I'm not sure why your code isn't working correctly - have you been able to step through it and see if it's iterating through the elements correctly?

    I would also suggest it might be better to use...
  19. In your example your controller doesn't have a 'push' method which is being called in your handler (perhaps you have just omitted it in your posted example). Also, the Ext.create call should be...
  20. You should use the Form's setValues or setRecord methods and it will match the data properties to the appropriate form fields based on their names.
    ...
  21. If you add the view as you would any other class, include the package in your main app and then reference the view with its class name or alias then it should work as normal.
  22. i think you will have to define the association the other way too, i.e. add a reference from the Person model to the Address.
  23. A simple solution would be:




    store1.filterBy(function(rec){ ... });

    store1.each(function(rec){
    store2.add({
    id: rec.get('id'),
  24. That looks like a nice simple way of doing it. As you say, you will need to be careful with destroying the created components on each refresh to avoid a memory leak.Personally I probably would have...
  25. I threw together a quick demo which might be of use to you to get you started. It basically just matches "@Names" and displays them in a filtered dataview where you can select the one you want.
    ...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4