The avContentPanel
directive is a panel inner container holding the panel's content.
title-value
a string to be displayed in the pane's header; if ommited, the header is not shown
title-style
sets the style of the pane's title; options: "headline", "title", "subhead"
sub-title-value
a string to be displayed in the pane's header; if ommited, not shown; if the title-value
is ommited, not shown;
is-loading
a flag to show/hide the loading indicator
hide-when-loading
if true, hides the content of the pane when the loading indicator is active
header-controls
a list of directive names separated by ';' to be inserted into the header (extra controls like a menu for example)
header-controls-scope
a scope to be passed to the header controls directives; if not supplied, the current scope of the panel is used
footer
directive name to insert into the footer
close-panel
a custom "close" function to call when the pane is closed
static-content
makes main content section non-scrollable
Usage example:
<av-content-panel
title-value="Panel"
title-style="title"
sub-title-value="sub title"
is-loading="true"
hide-when-loading="true"
header-controls="table-default-menu"
header-controls-scope=""
floating-header="true"
footer=""
close-panel=""
static-content="false">
</av-content-panel>
Methods
(private, inner) addHeaderControl(element, headerClass)
Add controls to panel header
Parameters:
Name | Type | Description |
---|---|---|
element |
Object | panel header to add control to |
headerClass |
String | class use to find the element where to add the controls |
(private, inner) initFooter()
Initialize footer
(inner) link(scope, element, attr, ctrl)
Sets defaults; binds the closePanel
method from the panel plug controller; compiles footer and extra header controls.
Parameters:
Name | Type | Description |
---|---|---|
scope |
Object | Angular scope |
element |
Object | HTML element |
attr |
Object | Attributes |
ctrl |
Object | Angular controller |