Skip to content
Open
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
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,31 @@ Available colors are the following [TailwindCSS text colors](https://tailwindcss
- `green`
- `red`

To force display info data on index view. Use *displayInfoOnIndex* method

```php
StatusField::make('Published')
->icons([
'minus-circle' => $this->published == 0,
'clock' => $this->pending == 1 && $this->published == 0,
'check-circle' => $this->pending == 0 && $this->published == 1
])
->displayInfoOnIndex()
```

By default text is truncate to 50 characters. Passing parameter to *displayInfoOnIndex* method allow to change maxlength limit.

```php
...
->displayInfoOnIndex(10)
...
```

## Contributors

- [Wessel Perik](https://github.com/wesselperik)
- [Jeremy Holstein](https://github.com/jjjrmy)
- [Sebastien Cramatte](https://github.com/operativeit)

## License

Expand Down
29 changes: 1 addition & 28 deletions dist/css/field.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading