@@ -21,11 +21,9 @@ fn main() {
|
||||
.run();
|
||||
}
|
||||
|
||||
widget!(
|
||||
MainView {
|
||||
widget!(MainView {
|
||||
policy_number: String16
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
impl Template for MainView {
|
||||
fn template(self, id: Entity, ctx: &mut BuildContext) -> Self {
|
||||
@@ -51,9 +49,7 @@ impl Template for MainView {
|
||||
//.child(ticket_data_button_menu)
|
||||
.build(ctx);
|
||||
|
||||
let ticket_data_form_row_0 = Stack::new()
|
||||
.name("Row 0")
|
||||
.build(ctx);
|
||||
let ticket_data_form_row_0 = Stack::new().name("Row 0").build(ctx);
|
||||
|
||||
let ticket_data_form = Container::new()
|
||||
//.id(ID_TICKET_DATA_FORM)
|
||||
@@ -72,7 +68,7 @@ impl Template for MainView {
|
||||
.push("auto") // Label
|
||||
.push(14) // Delimiter
|
||||
.push("*") // Data
|
||||
.push(4) // Delimiter
|
||||
.push(4), // Delimiter
|
||||
)
|
||||
.rows(
|
||||
Rows::create()
|
||||
@@ -88,14 +84,12 @@ impl Template for MainView {
|
||||
.push(14) // Seperator
|
||||
.push("auto") // Row 10
|
||||
.push(14) // Seperator
|
||||
.push("auto") // Row 12
|
||||
.push("auto"), // Row 12
|
||||
)
|
||||
|
||||
//.child(ticket_data_form_row_0)
|
||||
//.child(ticket_data_form_row_1)
|
||||
//.child(ticket_data_form_row_2)
|
||||
//.build(ctx),
|
||||
|
||||
.child(
|
||||
TextBlock::new()
|
||||
.attach(Grid::row(0))
|
||||
@@ -237,7 +231,6 @@ impl Template for MainView {
|
||||
.orientation("horizontal")
|
||||
.visibility(Visibility::Collapsed)
|
||||
//.spacing("4")
|
||||
|
||||
.child(
|
||||
Button::new()
|
||||
.margin(14)
|
||||
@@ -255,25 +248,18 @@ impl Template for MainView {
|
||||
.build(ctx);
|
||||
|
||||
// Starter page: Ticket Data Widget
|
||||
self.name("TicketdataView")
|
||||
.child(
|
||||
self.name("TicketdataView").child(
|
||||
Grid::new()
|
||||
//.id(ID_TICKET_DATA_WIDGET)
|
||||
.columns(
|
||||
Columns::create()
|
||||
.push(50)
|
||||
.push("*")
|
||||
.push(50)
|
||||
)
|
||||
.columns(Columns::create().push(50).push("*").push(50))
|
||||
.rows(
|
||||
Rows::create()
|
||||
.push("auto") // Header
|
||||
.push(28) // Seperator
|
||||
.push("*") // InputForm
|
||||
.push("auto") // ActionSend
|
||||
.push("auto"), // ActionSend
|
||||
//.push("auto") // Bottom )
|
||||
)
|
||||
|
||||
.child(ticket_data_header_bar) // row 0
|
||||
.child(ticket_data_form) // row 2
|
||||
.child(ticket_data_action) // row 3
|
||||
|
||||
Reference in New Issue
Block a user