on 01-20-2015 10:15 AM
Hi there,
I'm trying to build up a panel with a custom Expand/Collapse Icon. The panel is used to add New "instruments" so I'd like to have as icon the sap-icon add.
I've been looking arround for a solution but I only found how to do so using sap.ui.commons.panel as it has a method called addButton...
Thanks in advance,
Alex.
PD: Here you have an image to clarify what I'm talking about.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
//SearchPanel - sap.m.Panel
jQuery.sap.require("sap.ui.core.IconPool");
this.byId("SearchPanel").oIconCollapsed.destroy();
var sCollapsedIconURI = sap.ui.core.IconPool.getIconURI("search");
var thatPanel = this.byId("SearchPanel");
var oIconCollapsed = sap.ui.core.IconPool.createControlByURI({
id : thatPanel.getId() + "-CollapsedImg",
src : sCollapsedIconURI
}).addStyleClass("sapMPanelExpandableIcon").attachPress(function(oEvent) {
thatPanel.setExpanded(!thatPanel.getExpanded());
});
oIconCollapsed.setDecorative(false);
this.byId("SearchPanel").oIconCollapsed = oIconCollapsed;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would create for that a toolbar with an popup dialog or a new view for the creating form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.