Search Type: Posts; User: haduki

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. "distance" and "bla"
    why you sort different fields in one sorter?
  2. The op said you want to add listener to component in carousel,so my post is for the item in carousel,not the carousel itself.
    Here is listener for carousel:


    listeners:[
    {
    ...
  3. {
                    xtype:'container',
                    itemId: 'dayViewContainer',
    layout:'fit'
                }
  4. {
    listeners:{
    tap:{
    element:'element',
    fn:function(){
    console.info('tap');
    ...
  5. store.load(function(){
    var marker = new google.maps.Marker({


    position: new google.maps.LatLng((store.getAt(0).data.latitude),(store.getAt(0).data.longitude)),
    map:map

    ...
  6. var globalvalue="undefined";
    var value = globalvalue;
    globalvalue = 'Blah';
    value === 'Blah'? 'We are not in the same earth':'The value did not change of course';


    You should use the global...
  7. Sencha.Demo.controller.Bus


    if (!this.busMap) {
                this.busMap = Ext.widget('busMap', {
                    scrollable: false
                });
            }
  8. success
  9. I am sorry.Yes,you are right.
    in my code,should add 'load' listener on store,not the selectfield.


    //this.getLanguageCombo().on(...)
    this.getLanguageCombo().getStore().on(...)
  10. Replies
    2
    Views
    733
    http://docs.sencha.com/touch/2-1/#!/guide/dataview-section-4
  11. form.show() is sync.
    store.load() is async.



    InitialiseLanguageCombo: function(){
    console.log(this.getLanguageCombo());
    debugger;
    ...
  12. var tabButtons = main.down('#mainTabPanel').query('button');
    Ext.each(tabButtons ,function(button){
    console.dir(button);
    });
  13. Ext.create('Ext.List', {
    fullscreen: true,
    itemTpl: '<div style="background-color:{[values.dateOffset<0?"red":"green"]}">{title}</div>',
    data: [
    {dateOffset : 1, title:...
  14. Replies
    3
    Views
    378
    var list=Ext.create('Ext.List', {
    fullscreen: true,
    itemTpl: '{title}',
    store:Ext.create('Ext.data.Store',{
    data: [
    {object_id: '1', title: 'Hello', lat:...
  15. Replies
    4
    Views
    591
    This is NOT a json !
    谁告诉你这是json的,这明明是js片段,".join()"是个方法,需要js解释器才能运行。
    json是个数据格式,和平台无关,你觉得你这样写,非JS语言的平台认得出来么?
  16. Replies
    5
    Views
    2,069
    'scrollDock' only works for Ext.dataview.List, the default value is 'top'. you can try 'bottom' to find the difference.

    'Ext.dataview.DataView' extends from 'Ext.Container'. You can add items like...
  17. Replies
    1
    Views
    576
    'product/:id[?].+'
  18. Replies
    5
    Views
    2,069
    Ext.create('Ext.List', {
    fullscreen: true,
    itemTpl: '{title}',
    items:[{
    xtype:'container',
    scrollDock:'top',
    height:50,
    html:'another container'
    ...
  19. itemId is for container
    id is for controller



    refs: {
    gameSearch: 'searchfield[itemId="gameSearch"]'
    //'[itemId="gameSearch"]' also works
    }
  20. Replies
    8
    Views
    888
    stretchY:true
  21. You can not control or ref a component which has been destroyed.
    Though you create a new instance,but the references would not link to the new one ever unless you do 'setRefs' and 'setControl' again.
  22. Replies
    2
    Views
    980
    if you have only 2 items


    container.insert(0,container.getInnerItems(1));
  23. Ext.Array.each(record.get('customers'), function(customer, index) {
    customersStore.add(customer);
    });

    what is 'record'? Are you sure the type of 'customers' field is 'auto'?
  24. 'fields' is a config


    Ext.define('Bug', {
    extend: 'Ext.data.Model',
    config:{
    fields: ['title', 'description', 'status', 'severity']
    }

    });
  25. 1/ sorry for my poor english,i cant say long sentence.
    you just need to know:


    dataFromServer={users:[{ roles:[{id:'role_1'}]}]}
    associationKey should be 'roles'

    dataFromServer={users:[{...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4