You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/form/input.md
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,72 +15,77 @@ Renders a Bootstrap input field.
15
15
*`browse_button_text` - Expects a string and sets the text to be displayed in the "browse" button for the `:file` input
16
16
*`placeholder` - Expects a string to be displayed as a placeholder for whatever the user decides to choose for the `:file` input. Defaults to "Choose file"
17
17
*`variant` - Expects a symbol to change the size of the select menu, you can use either `:sm` or `:lg`
18
-
*`min` - Sets the corresponding HTML attribute for the `:range` input type
19
-
*`max` - Sets the corresponding HTML attribute for the `:range` input type
20
-
*`step` - Sets the corresponding HTML attribute for the `:range` input type
18
+
*`min` - Sets the corresponding HTML attribute
19
+
*`max` - Sets the corresponding HTML attribute
20
+
*`step` - Sets the corresponding HTML attribute
21
21
*`show_value` - Expects a boolean. Defaults to `false`, if set to `true` it displays the current value for the corresponding `:range` input type field
22
22
23
23
## Examples
24
24
25
-
### Example 1: Basic usage
25
+
### Basic usage for text input
26
26
27
27
```ruby
28
28
bs_form_input key::foo, type::text
29
29
```
30
30
31
-
### Example 2: Basic usage with label and form text
0 commit comments