Skip to content

Commit

Permalink
finish up readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
badinansoft authored Oct 21, 2022
1 parent 6baaa31 commit 4b46ab8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,46 @@ This [Nova](https://nova.laravel.com) tool lets you:
- Support Menu Items.
- 1 line of code able you to add a tooltip


## Screenshot

![](https://raw.githubusercontent.com/badinansoft/nova-tooltip/master/docs/tooltip-menu.png)


## Installation

You can install the nova tool in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```bash
composer require badinansoft/nova-tooltip
```

## Usage

- ### Field

Just need add this method to field ``` tooltip() ```
```php
Text::make(__('Domain'), 'domain')
->tooltip(__('Domain For Company <br /> <small class="text-primary-500">ex: https://badinanshipping.com</small>'))
```

- ### Menu Item

Just need add this method to menu item ``` tooltip() ```
```php
MenuItem::resource(ArrivedToTurkishOfficeOrder::class)
->tooltip(__('Arrived Orders <br> <small>That mean the orders that <br> arrived to <b>turkish office</b></small>'))
->name(__('AO')),
```


## Credits

- [Shahab Zebari](https://github.com/shahabzebare)
- [All Contributors](../../contributors)


## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 comments on commit 4b46ab8

Please sign in to comment.