extends |
View |
|---|
Implement popup view.
Popup are views that will be display when triggered by another view.
Popup can add content statically or dynamically via a callback.
When adding a popup to the page, you need to specify it's trigger element and the event needed on the trigger element in order to display the popup.
| Methods | ||
|---|---|---|
public
|
__construct(View|array<string, mixed> $triggerBy = [])
|
# |
protected
|
init(): void
|
# |
public
|
set(Closure(View): void $fx = null)
|
# |
public
|
setTriggerBy(View|string $trigger): $this
|
# |
public
|
setTargetByName(string $name): $this
|
# |
public
|
setHoverable(bool $isOverable = true): $this
|
# |
public
|
setOption(string $name, mixed $option): $this
|
# |
public
|
jsPopup(): Jquery
|
# |
protected
|
renderView(): void
|
# |
| 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() |
| Properties | |||
|---|---|---|---|
public
|
|
$ui = 'popup'
|
# |
public
|
View|string|null
|
$triggerBy
|
# |
public
|
string
|
$triggerOn
|
# |
public
|
string
|
$position = 'top left'
|
# |
public
|
View|false
|
$target = false
|
# |
public
|
array
|
$popOptions = []
|
# |
public
|
Callback|null
|
$cb
|
# |
public
|
View|array
|
$dynamicContent = [View::class]
|
# |
public
|
bool
|
$useCache = false
|
# |
public
|
string
|
$minWidth
|
# |
public
|
string
|
$minHeight
|
# |
public
|
bool
|
$stopClickEvent = false
|
# |
| Properties inherited from Atk4\Ui\View |
|---|
$_jsActions, $model, $region, $class, $style, $attr, $template, $defaultTemplate, $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 |