I am new PhoneJS coder. i have created simple slideout code.

I wanting that how to add logo at top in navi list view.

enter image description here

In picture, u can see red cirlce. that place how we can add logo? Please help

有帮助吗?

解决方案

In file layouts/SlideOut/SlideOutLayout.js you can find layout controller code.

Here in the end of the method _createNavigation put your code adding logotype to slideout:

_createNavigation : function(navigationCommands) {
    // existing code goes here

    this.$slideOut.find(".dx-slideout-menu").prepend("<div class='logo'>My Logo Here</div>");
}

Of course you can put any markup you need. In my example the logo could be background of the div.logo.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top