Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guides for Fields::Url #1937

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/fields/url/_index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%#
# Url Index Partial

This partial renders an email address,
This partial renders a URL address,
to be displayed on a resource's index page.

By default, the value is rendered as an `a` element.
Expand Down
2 changes: 1 addition & 1 deletion app/views/fields/url/_show.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%#
# Url Show Partial

This partial renders an email address,
This partial renders a URL address,
to be displayed on a resource's show page.

By default, the value is rendered as an `a` element.
Expand Down
9 changes: 9 additions & 0 deletions docs/customizing_dashboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ specify, including:
- `Field::Select`
- `Field::String`
- `Field::Text`
- `Field::Url`
- `Field::Password`

## Customizing Fields
Expand Down Expand Up @@ -238,6 +239,14 @@ Default is `false`.
`:truncate` - Set the number of characters to display in the index view.
Defaults to `50`.

**Field::Url**

`:searchable` - Specify if the attribute should be considered when searching.
Default is `true`.

`:truncate` - Set the number of characters to display in the index view.
Defaults to `50`.

**Field::Password**

`:searchable` - Specify if the attribute should be considered when searching.
Expand Down