| Methods |
protected
|
init(): void
Called when view becomes part of render tree. You can override it but avoid
placing any "heavy processing" here.
Called when view becomes part of render tree. You can override it but avoid
placing any "heavy processing" here.
Overrides
Overriden by
|
#
|
public
|
addDynamicContent(LoadableContent $content): void
Add loadable content to panel.
Add loadable content to panel.
Implements
|
#
|
public
|
getDynamicContent(): LoadableContent
Get panel loadable content.
Get panel loadable content.
Implements
|
#
|
public
|
service(): JsChain
Return JS expression in order to retrieve panelService.
Return JS expression in order to retrieve panelService.
|
#
|
public
|
jsOpen(
array<string, string> $urlArgs = [],
array $dataAttribute = [],
string|null $activeCss = null,
JsExpressionable $jsTrigger = null,
): JsExpressionable
Return JS expression need to open panel via JS panelService.
Return JS expression need to open panel via JS panelService.
Parameters
| $urlArgs |
the argument to include when dynamic content panel open
|
| $dataAttribute |
the data attribute name to include in reload from the triggering element
|
| $activeCss |
the CSS class name to apply on triggering element when panel is open
|
| $jsTrigger |
JS expression that trigger panel to open. Default = $(this).
|
|
#
|
public
|
jsPanelReload(array $args = []): JsExpressionable
Will reload panel passing args as Get param via JS flyoutService.
Will reload panel passing args as Get param via JS flyoutService.
|
#
|
public
|
jsClose(): JsExpressionable
Return JS expression need to close panel via JS panelService.
Return JS expression need to close panel via JS panelService.
|
#
|
public
|
addConfirmation(
string $msg,
string $title = 'Closing panel!',
string $okButton = null,
string $cancelButton = null,
): void
Attach confirmation modal view to display.
JS flyoutService will prevent closing of Flyout if a confirmation modal
is…
Attach confirmation modal view to display.
JS flyoutService will prevent closing of Flyout if a confirmation modal
is attached to it and flyoutService detect that the current open flyoutContent has warning on.
|
#
|
public
|
onOpen(Closure(object): void $fx): void
Callback to execute when panel open if dynamic content is set.
Differ the callback execution to the FlyoutContent.
Callback to execute when panel open if dynamic content is set.
Differ the callback execution to the FlyoutContent.
|
#
|
public
|
jsDisplayWarning(bool $state = true): Jquery
Display or not a Warning sign in Panel.
Display or not a Warning sign in Panel.
|
#
|
public
|
jsToggleWarning(): Jquery
Toggle warning sign.
|
#
|
public
|
getPanelOptions(): array
|
#
|
protected
|
renderView(): void
View-specific rendering stuff. Feel free to replace this method with
your own. View::renderView contains some logic…
View-specific rendering stuff. Feel free to replace this method with
your own. View::renderView contains some logic that integrates with
Fomantic-UI.
Overrides
|
#
|
| Properties |
public
|
array
|
$class = ['atk-right-panel']
|
#
|
public
|
|
$defaultTemplate = 'panel/right.html'
|
#
|
public
|
Modal|null
|
$closeModal
|
#
|
public
|
array
|
$defaultModal = [Modal::class, 'class' => ['mini']]
Confirmation Modal default
Confirmation Modal default
|
#
|
protected
|
View|null
|
$dynamicContent
The content to display inside flyout
The content to display inside flyout
|
#
|
protected
|
bool
|
$hasClickAway = true
can be closed by clicking outside panel.
can be closed by clicking outside panel.
|
#
|
protected
|
bool
|
$hasEscAway = true
can be closed via esc key.
can be closed via esc key.
|
#
|
public
|
array
|
$dynamic = [Content::class]
The default content seed.
The default content seed.
|
#
|
public
|
string
|
$closeSelector = '.atk-panel-close'
The CSS selector on where to add close panel event triggering for closing it.
The CSS selector on where to add close panel event triggering for closing it.
|
#
|
public
|
string
|
$warningSelector = '.atk-panel-warning'
a CSS selector where warning trigger class will be applied.
a CSS selector where warning trigger class will be applied.
|
#
|
public
|
string
|
$warningTrigger = 'atk-visible'
the CSS class name to apply to element set by warning selector.
the CSS class name to apply to element set by warning selector.
|
#
|
public
|
string
|
$warningIcon = 'exclamation circle'
the warning icon class
|
#
|
public
|
string
|
$closeIcon = 'times'
the close icon class
|
#
|