feat: Support table width (#12)

main
bokuweb 2019-12-15 00:39:01 +09:00 committed by GitHub
parent 93d3b17691
commit 3dc2a59ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -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 {

View File

@ -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
}
}