extends |
Input |
|---|
| Type aliases | ||
|---|---|---|
PhpFileArray
|
array{error: int, name: string}
|
# |
| Methods | ||
|---|---|---|
protected
|
init(): void
|
# |
public
|
set(string $fileId = null, string|null $fileName = null)
|
# |
public
|
setInput(mixed $value): $this
|
# |
public
|
getInputValue(): mixed
|
# |
public
|
setFileId(string|null $id): void
|
# |
public
|
addJsAction(JsExpressionable $action): void
|
# |
public
|
onUpload(
Closure(PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray, PhpFileArray): JsExpressionable $fx,
): void
|
# |
public
|
onDelete(Closure(string): JsExpressionable $fx): void
|
# |
protected
|
renderView(): void
|
# |
| Methods inherited from Atk4\Ui\Form\Control\Input |
|---|
setInputAttr(), getValue(), getInput(), prepareRenderLabel(), prepareRenderButton(), addAction() |
| Methods inherited from Atk4\Ui\Form\Control |
|---|
renderTemplateToHtml(), onChange(), jsInput() |
| Methods inherited from Atk4\Ui\AbstractView |
|---|
getOwner() |
| Methods used from Atk4\Core\AppScopeTrait |
|---|
assertInstanceOfApp(), issetApp(), getApp(), setApp() |
| Methods used from Atk4\Core\ContainerTrait |
|---|
_uniqueElementName(), _addContainer(), removeElement(), _shorten(), getElement(), hasElement() |
| Methods used from Atk4\Core\InitializerTrait |
|---|
isInitialized(), assertIsInitialized(), invokeInit() |
| Methods used from Atk4\Core\StaticAddToTrait |
|---|
_addToAdd(), addTo(), addToWithCl(), addToWithClUnsafe() |
| Methods used from Atk4\Core\TrackableTrait |
|---|
issetOwner(), setOwner(), unsetOwner(), getDesiredName(), destroy() |
| Constants | ||
|---|---|---|
public
|
UPLOAD_ACTION = 'upload'
|
# |
public
|
DELETE_ACTION = 'delete'
|
# |
| Properties | |||
|---|---|---|---|
public
|
|
$defaultTemplate = 'form/control/upload.html'
|
# |
public
|
string
|
$inputType = 'hidden'
|
# |
public
|
string|null
|
$fileId
|
# |
public
|
JsCallback
|
$cb
|
# |
public
|
bool
|
$multiple = false
|
# |
public
|
array
|
$accept = []
|
# |
public
|
bool
|
$hasUploadCb = false
|
# |
public
|
bool
|
$hasDeleteCb = false
|
# |
public
|
list<JsExpressionable>
|
$jsActions = []
|
# |
| Properties inherited from Atk4\Ui\Form\Control\Input |
|---|
$ui, $placeholder, $icon, $iconLeft, $loading, $label, $labelRight, $action, $actionLeft, $inputAttr |
| Properties inherited from Atk4\Ui\Form\Control |
|---|
$form, $entityField, $controlClass, $layoutWrap, $renderLabel, $width, $caption, $hint, $disabled, $readOnly |
| Properties inherited from Atk4\Ui\View |
|---|
$_jsActions, $model, $region, $class, $style, $attr, $template, $content, $element, $executorFactory, $stickyArgs |
| Properties inherited from Atk4\Ui\AbstractView |
|---|
$_addLater, $_rendered, $elements |
| Properties used from Atk4\Core\AppScopeTrait |
|---|
$_app, $maxNameLength, $uniqueNameHashes |
| Properties used from Atk4\Core\ContainerTrait |
|---|
$_elementNameCounts |
| Properties used from Atk4\Core\InitializerTrait |
|---|
$_initialized |
| Properties used from Atk4\Core\NameTrait |
|---|
$name |
| Properties used from Atk4\Core\TrackableTrait |
|---|
$_owner, $shortName |