| 37 | /// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/select#events) |
| 38 | #[derive(Clone, PartialEq, Properties)] |
| 39 | pub struct Props { |
| 40 | #[prop_or_default] |
| 41 | pub value: String, |
| 42 | #[prop_or_default] |
| 43 | pub label: String, |
| 44 | #[prop_or_default] |
| 45 | pub natural_menu_width: bool, |
| 46 | #[prop_or_default] |
| 47 | pub icon: String, |
| 48 | #[prop_or_default] |
| 49 | pub disabled: bool, |
| 50 | #[prop_or_default] |
| 51 | pub outlined: bool, |
| 52 | #[prop_or_default] |
| 53 | pub helper: String, |
| 54 | #[prop_or_default] |
| 55 | pub required: bool, |
| 56 | #[prop_or_default] |
| 57 | pub validation_message: String, |
| 58 | #[prop_or_default] |
| 59 | pub items: String, |
| 60 | #[prop_or(- 1)] |
| 61 | pub index: i64, |
| 62 | // #[prop_or_default] |
| 63 | // pub validity_transform: Option<ValidityTransform>, |
| 64 | #[prop_or_default] |
| 65 | pub validate_on_initial_render: bool, |
| 66 | #[prop_or_default] |
| 67 | pub children: Children, |
| 68 | /// [`WeakComponentLink`] for `List` which provides the following methods |
| 69 | /// - ```select(&self)``` |
| 70 | /// |
| 71 | /// See [`WeakComponentLink`] documentation for more information |
| 72 | #[prop_or_default] |
| 73 | pub select_link: WeakComponentLink<Select>, |
| 74 | /// Binds to `opened` event on `select-surface` |
| 75 | /// |
| 76 | /// See events docs to learn more. |
| 77 | #[prop_or_default] |
| 78 | pub onopened: Callback<()>, |
| 79 | /// Binds to `closed` event on `select-surface` |
| 80 | /// |
| 81 | /// See events docs to learn more. |
| 82 | #[prop_or_default] |
| 83 | pub onclosed: Callback<()>, |
| 84 | /// Binds to `action` event on `list` |
| 85 | /// |
| 86 | /// See events docs to learn more. |
| 87 | #[prop_or_default] |
| 88 | pub onaction: Callback<ActionDetail>, |
| 89 | /// Binds to `selected` event on `list` |
| 90 | /// |
| 91 | /// See events docs to learn more. |
| 92 | #[prop_or_default] |
| 93 | pub onselected: Callback<SelectedDetail>, |
| 94 | } |
| 95 | |
| 96 | impl Component for Select { |
nothing calls this directly
no outgoing calls
no test coverage detected