ga-panel
========
This is a main component that generates a simple gentelella panel.
.. image:: images/ga-panel.png
Binding reference
-----------------
- ``panel-title``: The panel title (string)
- ``panel-subtitle``: The panel subtitle displayed in smaller font next to the title (string)
- ``panel-query``: Whether to show a small input text box usually for filtering (boolean)
- ``panel-query-string``: A controller variable to hold the ``panel-query`` input (variable)
- ``panel-add-record-url``: A url to direct for adding a record. If provided a + icon will be available (string)
- ``panel-query-model-options``: Additional `ng-model-options`_ to pass to the query field (object)
- ``on-query-change``: A callback function to call if query value changes (function)
.. _ng-model-options: https://docs.angularjs.org/api/ng/directive/ngModelOptions
Transclude
----------
The component will present any content transcluded.
It also allows the optional transclude element ``panel-toolbar`` for presenting additional buttons
(v0.2.5, see examples below).
Controller
----------
The component will initiate the necessary jquery required by gentelella as well.
Code sample
-----------
Using simple filter
^^^^^^^^^^^^^^^^^^^
Template:
::
Reference_
.. _Reference: https://github.com/Wtower/generator-makrina/blob/master/generators/angular-component-list/templates/_object-name_-list.template.html
Using callback function
^^^^^^^^^^^^^^^^^^^^^^^
Template:
::