Documentation

ImagePicker extends Component
in package

Table of Contents

$aspectRatio  : float|null
$controls  : bool
$id  : string
$isCapture  : bool
$name  : string
$rotate  : int
$src  : string|null
__construct()  : mixed
Create a new component instance
render()  : View|Closure|string
Get the view / contents that represent the component.

Properties

Methods

__construct()

Create a new component instance

public __construct(string $name[, int $rotate = 10 ][, bool $controls = true ][, bool $isCapture = false ][, string|null $src = null ][, float|null $aspectRatio = null ]) : mixed
Parameters
$name : string
$rotate : int = 10
  • rotation in degrees, default is 10
$controls : bool = true
  • show controls for rotation and capture, default is true
$isCapture : bool = false
  • if true, allows capturing image from camera, default is false
$src : string|null = null
  • source URL for the image, default is null
$aspectRatio : float|null = null
  • aspect ratio of the image, default is null
Return values
mixed

render()

Get the view / contents that represent the component.

public render() : View|Closure|string
Return values
View|Closure|string

Search results