Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Supplementary information about use tab with non-ascii char as title.
  • Loading branch information
liaosankai authored Dec 3, 2022
1 parent c9091cf commit 81585c1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,25 @@ class User extends Resource

The first tab in every `Tabs` instance will be auto-selected.

**Note**: If use non-ascii char as title(ex: chinese), you should define the tab name with ascii char to avoid get empty slug string.
```php
public function fields(Request $request)
{
return [
Tabs::make('Some Title', [
Tab::make('頁籤一', [
Number::make('Balance', 'balance'),
Number::make('Total', 'total'),
])->name('tab-1'),

Tab::make('頁籤二', [
Number::make('Paid To Date', 'paid_to_date')
])->name('tab-2'),
]),
];
}
```

### Relationship Tabs

![image](https://user-images.githubusercontent.com/3426944/50060715-a3b8d680-0197-11e9-8f98-1cac8cf3fd83.png)
Expand Down

0 comments on commit 81585c1

Please sign in to comment.