-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gs-reactor: Rewrite GSResponsive with new framework version
- Loading branch information
1 parent
557e181
commit 5cd26c0
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
gs-reactor/src/main/java/org/genericsystem/reactor/gscomponents3/Responsive.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.genericsystem.reactor.gscomponents3; | ||
|
||
import org.genericsystem.reactor.Tag; | ||
import org.genericsystem.reactor.annotations.Styles.FlexDirectionStyle; | ||
import org.genericsystem.reactor.annotations.Styles.Style; | ||
import org.genericsystem.reactor.gscomponents.FlexDirection; | ||
import org.genericsystem.reactor.gscomponents.GSDiv; | ||
|
||
@FlexDirectionStyle(FlexDirection.ROW) | ||
@Style(name = "flex-wrap", value = "wrap") | ||
public class Responsive extends GSDiv { | ||
@Override | ||
public void init() { | ||
for (Tag tag : getObservableChildren()) { | ||
tag.addStyle("margin", "10px"); | ||
tag.addStyle("padding", "10px"); | ||
tag.addStyle("border-radius", "10px"); | ||
tag.addStyle("background-color", "white"); | ||
tag.addStyle("min-width", "10cm"); | ||
} | ||
} | ||
} |