Skip to content

Commit

Permalink
make clickable link a component and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbs committed Aug 27, 2018
1 parent 65f38b6 commit 3fb5ba3
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 10,818 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,34 @@ Email::make('Email')
->clickable(),
```

#### Clickable on Index
Make the field display as a mailto link on the index page:

```php
Email::make('Email')
->clickableOnIndex(),
```

## Appearance
### Index
### Index (default)
![index-field](https://raw.githubusercontent.com/inspheric/nova-email-field/master/docs/index-field.png)

The field is displayed as a plain `<span>` element.

### Detail
### Index (clickable)
![index-field-clickable](https://raw.githubusercontent.com/inspheric/nova-email-field/master/docs/index-field-clickable.png)

The field is displayed as an `<a href="mailto:...">` element with an icon.

### Detail (default)
![detail-field](https://raw.githubusercontent.com/inspheric/nova-email-field/master/docs/detail-field-plain.png)

The field is displayed as a plain `<span>` element.

### Detail (clickable)
![detail-field-clickable](https://raw.githubusercontent.com/inspheric/nova-email-field/master/docs/detail-field-clickable.png)

The field is displayed as an `<a href="mailto:...">` element.
The field is displayed as an `<a href="mailto:...">` element with an icon.

### Form
![form-field](https://raw.githubusercontent.com/inspheric/nova-email-field/master/docs/form-field.png)
Expand Down
Loading

0 comments on commit 3fb5ba3

Please sign in to comment.