pub struct InstallCommandProps {
pub command: String,
pub label: Option<String>,
pub prompt: String,
pub copy_label: Option<String>,
pub copied_label: Option<String>,
pub error_label: Option<String>,
pub on_copy: Option<Callback<String, bool>>,
pub class: Option<String>,
pub attributes: Vec<Attribute>,
}Expand description
Props for InstallCommand.
Fields§
§command: StringThe exact text that is shown and copied.
label: Option<String>Accessible name of the group and its scrollable command. Defaults to “Install command”.
prompt: StringDecorative prompt. Pass an empty string to hide it.
copy_label: Option<String>Accessible name of the copy button. Defaults to “Copy install command”, or “Copy {label}”.
copied_label: Option<String>Name and feedback after a copy.
error_label: Option<String>Name and feedback after a failed copy.
on_copy: Option<Callback<String, bool>>Copies through the app instead of the browser clipboard. Use it on Dioxus Native.
class: Option<String>Extra classes appended after the Lumen class.
attributes: Vec<Attribute>Any other <div> or global attribute.
Implementations§
Source§impl InstallCommandProps
impl InstallCommandProps
Sourcepub fn builder() -> InstallCommandPropsBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> InstallCommandPropsBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building InstallCommandProps.
On the builder, call .command(...), .label(...)(optional), .prompt(...)(optional), .copy_label(...)(optional), .copied_label(...)(optional), .error_label(...)(optional), .on_copy(...)(optional), .class(...)(optional), .attributes(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of InstallCommandProps.
Trait Implementations§
Source§impl Clone for InstallCommandProps
impl Clone for InstallCommandProps
Source§impl PartialEq for InstallCommandProps
impl PartialEq for InstallCommandProps
Source§impl Properties for InstallCommandPropswhere
Self: Clone,
impl Properties for InstallCommandPropswhere
Self: Clone,
Source§type Builder = InstallCommandPropsBuilder<((), (), (), (), (), (), (), (), ())>
type Builder = InstallCommandPropsBuilder<((), (), (), (), (), (), (), (), ())>
Source§fn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Source§fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
impl StructuralPartialEq for InstallCommandProps
Auto Trait Implementations§
impl !RefUnwindSafe for InstallCommandProps
impl !Send for InstallCommandProps
impl !Sync for InstallCommandProps
impl !UnwindSafe for InstallCommandProps
impl Forget for InstallCommandProps
impl Freeze for InstallCommandProps
impl Move for InstallCommandProps
impl Unpin for InstallCommandProps
impl UnsafeUnpin for InstallCommandPropswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static UnsyncStorage: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'static Location<'static>: UnsafeUnpin,
PhantomData<Option<ExternalListenerCallback<String, bool>>>: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more