Results 1 to 3 of 3
  1. shawalli's Avatar
    Posts
    83 Posts
    Global Posts
    85 Global Posts
       #1  
    Does anyone have any advice on how to best create/reference a custom command icon? ive been struggling with it for awhile now, and I don't know if Im drawing it with incorrect standards (the ones on palms website are vague in my opinion) or if im not calling it correctly. Any tips?
  2. #2  
    Create a png say 300x600px. draw something in the top 300px and something in the bottom 300px. resize it to 32x64. I can't remember which half is button depressed and which is not pressed.

    place it in your images directory in the root of your application dir.

    create a image class in your css

    Code:
    .palm-menu-icon.someClassname { background-image: url(../images/some.png);}
    reference it in the command menu model.

    Code:
    this.cmdMenuModel = {
      	visible: true,
                     items: [
    			{items:[{icon: 'someClassname',command: 'someCommand'}]}
    			]    						
    		};
  3. shawalli's Avatar
    Posts
    83 Posts
    Global Posts
    85 Global Posts
       #3  
    i actually figured it out another way...just put the image in the images folder and use iconPath instead of icon, then "images/myiconname.png" as the icon path.

Posting Permissions