Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Button Icon

    Hi
    I want to disable my button, which owns an icon,
    but the image disappears :( how can I improve my code that my button be disabled but the icon be displayed as something reasonable.
    here is my code:
    .
    .
    .
    iisc.Button.create({wrapTitle:false, title:"<s:text name="portal.bulletinboard.publish"/>",
    ID:"publishbtn",
    type:"Button",
    width:120,
    icon:"/apusermanagement/images/demoApp/icon_export.png",
    iconWidth:24,
    colSpan:"4",
    disabled: true,
    click:"publishbtn.setDisabled(false); publishBulletinBoardForm.publishFormSaveData()"
    })
    .
    .
    .
    TNX 4 Ur attention

    Regards
    nazila

    #2
    By default, SmartClient will swap the icon media when the button becomes disabled. In this case it would go to "icon_export_Disabled.png".

    If you don't have media for the disabled state, you can prevent this via setting showDisabledIcon:false on the Button.

    Comment


      #3
      :)

      Thank U
      Thank U
      Thank U

      Comment

      Working...
      X