MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / option

Function option

primitives/src/selection.rs:136–143  ·  view source on GitHub ↗
(id: &str, index: usize)

Source from the content-addressed store, hash-verified

134 use super::*;
135
136 fn option(id: &str, index: usize) -> OptionState {
137 OptionState {
138 id: id.to_string(),
139 index,
140 value: RcPartialEqValue::new(id.to_string()),
141 text_value: id.to_string(),
142 }
143 }
144
145 fn ids(options: &[OptionState]) -> Vec<&str> {
146 options

Calls

no outgoing calls