org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

FioriButton setIcon method only works first time #87

Closed alfgon closed 8 years ago

alfgon commented 8 years ago

Hi,

I am using the FioriButton. I am trying to use a single button that changes its behaviour after clicking on it using a code as sample below (implemented on event click button)

// Display Mode Chart and button is clicked if (g_DisplayMode == 0) {

PANEL_CROSSTAB.setVisible(true);
PANEL_CHART.setVisible(false);

DISPLAY_BUTTON.setTooltip("Chart Mode");
DISPLAY_BUTTON.setIcon("e18c");

g_DisplayMode = 1;

} // Display Mode Table and button is clicked else if (g_DisplayMode == 1) {

PANEL_CROSSTAB.setVisible(false);
PANEL_CHART.setVisible(true);

DISPLAY_BUTTON.setTooltip("Table Mode");
DISPLAY_BUTTON.setIcon("e0ba");

g_DisplayMode = 0;

} Initially g_DisplayMode is set 1. First time button is clicked all works fine. icon and tooltip text is replaced. By after clicking again on it only tooltip text is updated. The icon not.

?? bug

KarolKalisz commented 8 years ago

found, fixed, will be available in 2 hours from now as download.

KarolKalisz commented 8 years ago

Sorry, I could not get it produced today, i will make it tomorrow.

alfgon commented 8 years ago

Thanks Karol!