Jump to content

Mobile Calendar On iPhone Adds Button "+" (rangeselect) and Desktop Navigator Bar when selected


andyhill

Recommended Posts

  • andyhill changed the title to Mobile Calendar On iPhone Adds Button "+" (rangeselect) and Desktop Navigator Bar when selected
35 minutes ago, andyhill said:

No, this is what I want to achieve, PRIOR / NEXT buttons (aligned with date text line) with ajax responses.

There is a compactOptions config, but it doesn't work properly I guess. Need to investigate more.

Link to comment
Share on other sites

function afterCreate(sender) 
{
    if (sender.getCompact() == true) {
        var tbar = Ext.get(Ext.get(sender.element.query('.x-toolbar')).elements[0]);
        if (tbar) {
            tbar.component.items.items[3].hide();
            tbar.component.insert(4, {
                xtype: "button",
                iconCls: "x-fa fa-arrow-left",
                handler: function() {
                    sender.movePrevious()
                }
            });
            tbar.component.insert(5, {
                xtype: "button",
                iconCls: "x-fa fa-arrow-right",
                handler: function() {
                    sender.moveNext()
                }
            })
        }
    }
}

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...