Updated CSS and CustomTable
This commit is contained in:
parent
2eda920c1d
commit
ec7232187c
|
@ -147,7 +147,8 @@ public class SectionViewer extends Composite {
|
|||
private void showLinkToDownloadWsContent(String title, List<PayloadDV> listPayloads) {
|
||||
|
||||
if (listPayloads != null) {
|
||||
CustomFlexTable customTable = new CustomFlexTable();
|
||||
//"w-my-html-table"
|
||||
CustomFlexTable customTable = new CustomFlexTable("w-my-html-table-file");
|
||||
int i = 0;
|
||||
String fieldLabel = title;
|
||||
for (PayloadDV payload : listPayloads) {
|
||||
|
|
|
@ -20,10 +20,13 @@ public class CustomFlexTable extends FlexTable {
|
|||
|
||||
/**
|
||||
* Instantiates a new custom flex table.
|
||||
*
|
||||
* @param className the class name
|
||||
*/
|
||||
public CustomFlexTable() {
|
||||
public CustomFlexTable(String cssClassName) {
|
||||
|
||||
this.getElement().addClassName("w-my-html-table");
|
||||
if(cssClassName!=null)
|
||||
this.getElement().addClassName(cssClassName);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -24,10 +24,15 @@
|
|||
font-size: 13px;
|
||||
width: 99%;
|
||||
word-break: break-word;
|
||||
margin-bottom: 30px;
|
||||
/*! margin: 20px auto; */
|
||||
/*! margin-right: 20px; */
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.w-my-html-table td {
|
||||
padding: 5px 5px;
|
||||
padding: 5px 20px;
|
||||
}
|
||||
|
||||
.w-my-html-table td:first-child {
|
||||
|
@ -40,8 +45,13 @@
|
|||
text-align: justify;
|
||||
}
|
||||
|
||||
.w-my-html-table tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
.w-my-html-table-file {
|
||||
margin-bottom: 50px;
|
||||
margin-top: -20px;
|
||||
}
|
||||
|
||||
.w-my-html-table-file td {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/******************************
|
||||
|
|
Loading…
Reference in New Issue