Change SliderDrawer Icon

164 views Asked by At

whats I need to do to change the icon on top left? (SmartFaceIcon)

SliderDrawerIcon

1

There are 1 answers

4
merve bıçakçı On

You should use dynamic slider drawer for the first page and you can define it in Global.Smartface.js, such as :

var mySliderDrawer = new SMF.UI.SliderDrawer({
        position : SMF.UI.SliderDrawerPosition.left,
        icon : "myicon.png"
    });
Pages.Page1.add(mySliderDrawer);

For other pages, you can use both dynamic or static and change the icon simply before you show the page. If you use static, you can change its icon as below :

Pages.Page2.SliderDrawer1.icon = "myicon.png";
Pages.Page2.show();

Be sure you set your icon(myicon) in the resource folder.