mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
ImageGallery and VideoGallery on mobiel media page are now collapsable
This commit is contained in:
1 parent
e34e17f912
commit
22831b2035
3 files changed
+9
-1
No files matched your search
+3
-1
@@ -22,11 +22,13 @@ public class ImageGallery extends Composite {
|
||||
@UiField SectionHeaderContent sectionHeaderUi;
|
||||
@UiField DivElement firstColumnUi;
|
||||
@UiField DivElement secondColumnUi;
|
||||
private final MobileSection mobileSection;
|
||||
|
||||
public ImageGallery() {
|
||||
ImageGalleryResources.INSTANCE.css().ensureInjected();
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
initWidget(mobileSection = uiBinder.createAndBindUi(this));
|
||||
sectionHeaderUi.setSectionTitle(StringMessages.INSTANCE.images());
|
||||
sectionHeaderUi.initCollapsibility(mobileSection.getContentContainerElement(), true);
|
||||
}
|
||||
|
||||
public void setImages(Collection<? extends ImageDTO> images) {
|
||||
|
||||
+5
@@ -2,6 +2,7 @@ package com.sap.sailing.gwt.home.mobile.partials.section;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.DivElement;
|
||||
import com.google.gwt.dom.client.Element;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiChild;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
@@ -63,4 +64,8 @@ public class MobileSection extends Composite {
|
||||
sectionContentHolderUi.removeClassName(local_res.css().edgeToEdgeSectionContentHolder());
|
||||
}
|
||||
}
|
||||
|
||||
public Element getContentContainerElement() {
|
||||
return sectionContentHolderUi;
|
||||
}
|
||||
}
|
||||
+1
@@ -25,6 +25,7 @@ public class VideoGallery extends Composite {
|
||||
VideoGalleryResources.INSTANCE.css().ensureInjected();
|
||||
initWidget(mobileSection = uiBinder.createAndBindUi(this));
|
||||
sectionHeaderUi.setSectionTitle(StringMessages.INSTANCE.videos());
|
||||
sectionHeaderUi.initCollapsibility(mobileSection.getContentContainerElement(), true);
|
||||
}
|
||||
|
||||
public void setVideos(Collection<? extends VideoDTO> videos) {
|
||||
|
||||
Reference in new issue
Block a user