widgets/policycheck: update new syntax for Grid
* Columns,Row use create() functions * update from .add() to new .push() method Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -215,23 +215,23 @@ impl Template for PolicyCheckView {
|
|||||||
Grid::new()
|
Grid::new()
|
||||||
.id(ID_POLICY_CHECK_FORM)
|
.id(ID_POLICY_CHECK_FORM)
|
||||||
.columns(
|
.columns(
|
||||||
Columns::new()
|
Columns::create()
|
||||||
// Labels
|
// Labels
|
||||||
.add("250")
|
.push("250")
|
||||||
// Seperator
|
// Seperator
|
||||||
.add("16")
|
.push("16")
|
||||||
// Values
|
// Values
|
||||||
.add("100")
|
.push("100")
|
||||||
// Seperator
|
// Seperator
|
||||||
.add("16")
|
.push("16")
|
||||||
// Result-Button
|
// Result-Button
|
||||||
.add("32")
|
.push("32")
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
.rows(
|
.rows(
|
||||||
Rows::new()
|
Rows::create()
|
||||||
.add("auto")
|
.push("auto")
|
||||||
.add("auto")
|
.push("auto")
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
.child(policy_check_form_row_0)
|
.child(policy_check_form_row_0)
|
||||||
@@ -280,19 +280,19 @@ impl Template for PolicyCheckView {
|
|||||||
Grid::new()
|
Grid::new()
|
||||||
.id(ID_POLICY_CHECK_WIDGET)
|
.id(ID_POLICY_CHECK_WIDGET)
|
||||||
.columns(
|
.columns(
|
||||||
Columns::new()
|
Columns::create()
|
||||||
.add(50)
|
.push(50)
|
||||||
.add("*")
|
.push("*")
|
||||||
.add(50)
|
.push(50)
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
.rows(
|
.rows(
|
||||||
Rows::new()
|
Rows::create()
|
||||||
.add("auto")
|
.push("auto")
|
||||||
.add(28)
|
.push(28)
|
||||||
.add("*")
|
.push("*")
|
||||||
.add("auto")
|
.push("auto")
|
||||||
.add("auto")
|
.push("auto")
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user