File
extends Component
in package
Table of Contents
- $accept : string
- $box : bool
- $filename : string|null
- $hint : string|null
- $id : string
- $label : string|null
- $name : string
- $placeholder : string|null
- $type : string|null
- Type of document - pdf | excel | image
- __construct() : mixed
- Create a new component instance.
- render() : View|string
- Get the view / contents that represent the component.
Properties
$accept
public
string
$accept
$box
public
bool
$box
$filename
public
string|null
$filename
= null
$hint
public
string|null
$hint
= null
$id
public
string
$id
$label
public
string|null
$label
= null
$name
public
string
$name
$placeholder
public
string|null
$placeholder
= null
$type
Type of document - pdf | excel | image
public
string|null
$type
= null
Methods
__construct()
Create a new component instance.
public
__construct(string $name[, mixed $label = null ][, string $id = null ][, string $type = null ][, string $placeholder = 'Choose a file' ][, bool $box = false ][, string $filename = null ][, string $hint = null ]) : mixed
Parameters
- $name : string
- $label : mixed = null
- $id : string = null
- $type : string = null
- $placeholder : string = 'Choose a file'
- $box : bool = false
- $filename : string = null
- $hint : string = null
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string