()
| 36 | |
| 37 | impl Sheet { |
| 38 | pub fn new() -> Self { |
| 39 | let props = SheetProps::default(); |
| 40 | |
| 41 | let component = Self { |
| 42 | props: RefCell::new(props), |
| 43 | inner: Widget::new(), |
| 44 | }; |
| 45 | |
| 46 | component.init(); |
| 47 | component |
| 48 | } |
| 49 | |
| 50 | pub fn with_label(text: &str) -> Self { |
| 51 | let mut props = SheetProps::default(); |