Skip to content

Commit

Permalink
fix: change documentation about avatar field 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
agoalofalife committed Aug 20, 2023
1 parent 7a7f306 commit 737f07b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified source/assets/fields/avatar/single.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/assets/fields/avatar/table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions source/docs/fields/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ use agoalofalife\Orchid\Fields\Range;
// value - url to source
// heightByPercent - size avatar by percents
// nameAvatar - text under a avatar like a "title"
// sizeTitle - size a title
// fontSizeByPx - size a title like font-size and measured by px
// left or right or center - position avatar on layout

Avatar::make('test')
->value("https://avatars.githubusercontent.com/u/15719824?v=4")
->heightByPercent(6)
->nameAvatar('Ilia Chubarov')
->sizeTitle(5)
->fontSizeByPx(15)
->left(),
```

Expand Down

0 comments on commit 737f07b

Please sign in to comment.