feat: Support table width (#12)
parent
93d3b17691
commit
3dc2a59ede
|
@ -35,6 +35,11 @@ impl Table {
|
|||
self.property = self.property.align(v);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn width(mut self, w: usize) -> Table {
|
||||
self.property = self.property.width(w, WidthType::DXA);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl BuildXML for Table {
|
||||
|
|
|
@ -38,4 +38,9 @@ impl Table {
|
|||
self.0 = self.0.align(v);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn width(mut self, w: usize) -> Table {
|
||||
self.0 = self.0.width(w);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue