pub struct ColorPicker { /* private fields */ }Expand description
ColorPicker component (gr.ColorPicker equivalent): interactive color selector.
Implementations§
Source§impl ColorPicker
impl ColorPicker
Sourcepub fn new(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> Self
Creates a color picker component with default color "#6366f1". Input by default.
Sourcepub fn presets_str(self, p: Vec<String>) -> Self
pub fn presets_str(self, p: Vec<String>) -> Self
Quick preset colors from owned Strings.
Sourcepub fn interactive(self, on: bool) -> Self
pub fn interactive(self, on: bool) -> Self
Enables or disables user interaction.
Trait Implementations§
Source§impl Clone for ColorPicker
impl Clone for ColorPicker
Source§impl Component for ColorPicker
impl Component for ColorPicker
Source§fn id(&self) -> &str
fn id(&self) -> &str
Identifiant unique du composant — cible des événements et licences
ctx.get/set.Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
Nom logique du composant (ex.
"text", "slider", "row"). Doit
correspondre à une entrée du registre JavaScript.Auto Trait Implementations§
impl Freeze for ColorPicker
impl RefUnwindSafe for ColorPicker
impl Send for ColorPicker
impl Sync for ColorPicker
impl Unpin for ColorPicker
impl UnsafeUnpin for ColorPicker
impl UnwindSafe for ColorPicker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more