MCPcopy Create free account
hub / github.com/angular-rust/ux-components / Widget

Interface Widget

src/widgets/mod.rs:241–258  ·  view source on GitHub ↗

Inherited from DiagnosticableTree

Source from the content-addressed store, hash-verified

239
240// Inherited from DiagnosticableTree
241pub trait Widget {
242 // @factory, @protected
243 /// Inflates this configuration to a concrete instance
244 fn create_element(&self) -> Box<dyn Element>;
245
246 // // override DiagnosticableTree
247 // /// Add additional properties associated with the node.
248 // fn debug_fill_properties(properties: DiagnosticPropertiesBuilder);
249
250 // // override DiagnosticableTree
251 // /// A short, textual description of this widget.
252 // fn to_string_short();
253
254 // Check for null object, aka None
255 fn is_none(&self) -> bool {
256 false
257 }
258}
259
260
261/// NoneWidget used only as default widget to simplify declarative sintax

Callers

nothing calls this directly

Implementers 15

calendar_date_picker.rssrc/material/calendar_date_picker.rs
choice_chip.rssrc/material/choice_chip.rs
tab_page_selector.rssrc/material/tab_page_selector.rs
about_list_tile.rssrc/material/about_list_tile.rs
material_app.rssrc/material/material_app.rs
alert_dialog.rssrc/material/alert_dialog.rs
chip.rssrc/material/chip.rs
scrollable.rssrc/material/scrollable.rs
date_picker_dialog.rssrc/material/date_picker_dialog.rs
outline_button.rssrc/material/outline_button.rs
linear_progress_indicator.rssrc/material/linear_progress_indicator
scaffold.rssrc/material/scaffold.rs

Calls

no outgoing calls

Tested by

no test coverage detected