cleanup: remove extra example from text input
This commit is contained in:
parent
fda17c9d97
commit
5ac8f120b4
1 changed files with 0 additions and 21 deletions
|
|
@ -154,27 +154,6 @@ pub type DnDCommand =
|
||||||
pub type DnDCommand = ();
|
pub type DnDCommand = ();
|
||||||
|
|
||||||
/// A field that can be filled with text.
|
/// A field that can be filled with text.
|
||||||
///
|
|
||||||
/// # Example
|
|
||||||
/// ```no_run
|
|
||||||
/// # pub type TextInput<'a, Message> =
|
|
||||||
/// # iced_widget::TextInput<'a, Message, iced_widget::renderer::Renderer<iced_widget::style::Theme>>;
|
|
||||||
/// #
|
|
||||||
/// #[derive(Debug, Clone)]
|
|
||||||
/// enum Message {
|
|
||||||
/// TextInputChanged(String),
|
|
||||||
/// }
|
|
||||||
///
|
|
||||||
/// let value = "Some text";
|
|
||||||
///
|
|
||||||
/// let input = TextInput::new(
|
|
||||||
/// "This is the placeholder...",
|
|
||||||
/// value,
|
|
||||||
/// )
|
|
||||||
/// .on_input(Message::TextInputChanged)
|
|
||||||
/// .padding(10);
|
|
||||||
/// ```
|
|
||||||
/// 
|
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub struct TextInput<'a, Message> {
|
pub struct TextInput<'a, Message> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue