Nova Video
  • 🏁Getting Started
    • Introduction
    • Installation
    • Support Us
    • License
  • 🚀Usage
    • Basic Usage
    • Usage with Larupload
    • Notes
  • ⚙️Advanced Usage
    • Video Metadata
    • Rest API Usage (Larupload)
    • Video Field Options
      • Make
      • Store With Larupload
      • Player Mode
      • Player Type
      • Direction (dir)
      • Max Height
      • Hide Cover Uploader
    • Configuration
      • UI
        • Player
          • Type
          • Direction (dir)
          • Max Height
      • Cover Uploader
      • Player Mode
  • ⚪Other
    • Demo
Powered by GitBook
On this page
Edit on GitHub
  1. Advanced Usage
  2. Video Field Options

Max Height

maxHeight

Argument
Type
Required
Example

height

string

auto, 200px

The ui.player.max-height property enables you to specify the maximum height for the player on the index page of your Nova resource.

<?php

namespace App\Nova;

use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Mostafaznv\NovaVideo\Enums\NovaVideoPlayerDirection;
use Mostafaznv\NovaVideo\Video;
use App\Models\Media as MediaModel;


class Media extends Resource
{
    public static string $model = MediaModel::class;


    public function fields(Request $request): array
    {
        return [
            ID::make()->sortable(),

            Video::make(trans('Video'), 'video')
                ->maxHeight('160px'),
        ];
    }
}

PreviousDirection (dir)NextHide Cover Uploader

Last updated 1 year ago

⚙️