MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / button

Method button

src/accessibility.rs:101–106  ·  view source on GitHub ↗

Sets role = Button and label in one call.

(&mut self, label: &str)

Source from the content-addressed store, hash-verified

99
100 /// Sets role = Button and label in one call.
101 pub fn button(&mut self, label: &str) -> &mut Self {
102 self.config.role = AccessibilityRole::Button;
103 self.config.label = label.to_string();
104 self.config.focusable = true;
105 self
106 }
107
108 /// Sets role = Heading with the given level (1–6) and label.
109 pub fn heading(&mut self, label: &str, level: u8) -> &mut Self {

Calls

no outgoing calls