5 Replies Latest reply on May 27, 2010 8:50 AM by vmvmvmvmvm

    How to relate my costom skin with my costom component?

    The Bruder Level 1

      Hi All,

       

      I created new component in my project: "myNewComponent" and created a skin to match this component: "myNewComponentSkin".

       

      When i use the component, i have to add ther skin class:

       

      <comp:myNewComponent

          skinClass="com.comp.myNewComponentSkin"/>

       

      my question is, how do i assosiate the skin to the component without using the "skinClass"? i still want it to work by default with my new skin (Like using spark "button" that takes the default button skin without need to declare "skinClass"), for example:

       

      <comp:myNewComponent/>   ( <-- this should also use "myNewComponentSkin")

       

      Thanks in advance,

      Lior