Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

LinkItem does not show icons set in the setIcons method.

$
0
0
Trying to use icons with a link item and they are not visible. See the following example.

1. SmartClient Version: v10.0p_2014-10-22/LGPL Development Only (built 2014-10-22)
2. FF 24.7 ESR

Code:

public class Main implements EntryPoint {
    @Override
    public void onModuleLoad() {
        new DynamicForm(){{
            setFields(new LinkItem(){{
                setLinkTitle("View");
                setIcons(new FormItemIcon(){{
                    setSrc("ANY IMAGE");
                    setHeight(16);
                    setWidth(16);
                }}, new FormItemIcon(){{
                    setSrc("ANY IMAGE");
                    setHeight(16);
                    setWidth(16);
                }});
            }});
        }}.show();
    }
}


Viewing all articles
Browse latest Browse all 4756

Trending Articles