Merge "Searchbar directive should be prefix with hz"
This commit is contained in:
commit
f8eba7d1cb
@ -6,14 +6,14 @@
|
|||||||
.constant('horizon.framework.widgets.table.filterPlaceholderText', gettext('Filter'))
|
.constant('horizon.framework.widgets.table.filterPlaceholderText', gettext('Filter'))
|
||||||
/**
|
/**
|
||||||
* @ngdoc directive
|
* @ngdoc directive
|
||||||
* @name horizon.framework.widgets.table.directive:searchBar
|
* @name horizon.framework.widgets.table.directive:hzSearchBar
|
||||||
* @element
|
* @element
|
||||||
* @param {string} {array} groupClasses Input group classes (optional)
|
* @param {string} {array} groupClasses Input group classes (optional)
|
||||||
* @param {string} {array} iconClasses Icon classes (optional)
|
* @param {string} {array} iconClasses Icon classes (optional)
|
||||||
* @param {string} {array} inputClasses Search field classes (optional)
|
* @param {string} {array} inputClasses Search field classes (optional)
|
||||||
* @param {string} placeholder input field placeholder text (optional)
|
* @param {string} placeholder input field placeholder text (optional)
|
||||||
* @description
|
* @description
|
||||||
* The `searchBar` directive generates a search field that will
|
* The `hzSearchBar` directive generates a search field that will
|
||||||
* trigger filtering of the associated Smart-Table.
|
* trigger filtering of the associated Smart-Table.
|
||||||
*
|
*
|
||||||
* groupClasses - classes that should be applied to input group element
|
* groupClasses - classes that should be applied to input group element
|
||||||
@ -25,12 +25,12 @@
|
|||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```
|
* ```
|
||||||
* <search-bar group-classes="input-group-sm"
|
* <hz-search-bar group-classes="input-group-sm"
|
||||||
* icon-classes="fa-search" input-classes="..." placeholder="Filter">
|
* icon-classes="fa-search" input-classes="..." placeholder="Filter">
|
||||||
* </search-bar>
|
* </hz-search-bar>
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
.directive('searchBar', ['horizon.framework.widgets.table.filterPlaceholderText',
|
.directive('hzSearchBar', ['horizon.framework.widgets.table.filterPlaceholderText',
|
||||||
'horizon.framework.widgets.basePath',
|
'horizon.framework.widgets.basePath',
|
||||||
function(FILTER_PLACEHOLDER_TEXT, path) {
|
function(FILTER_PLACEHOLDER_TEXT, path) {
|
||||||
return {
|
return {
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
'<thead>' +
|
'<thead>' +
|
||||||
' <tr>' +
|
' <tr>' +
|
||||||
' <th>' +
|
' <th>' +
|
||||||
' <search-bar group-classes="input-group-sm" ' +
|
' <hz-search-bar group-classes="input-group-sm" ' +
|
||||||
' icon-classes="fa-search">' +
|
' icon-classes="fa-search">' +
|
||||||
' </search-bar>' +
|
' </hz-search-bar>' +
|
||||||
' </th>' +
|
' </th>' +
|
||||||
' </tr>' +
|
' </tr>' +
|
||||||
'</thead>' +
|
'</thead>' +
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="search-header" colspan="10">
|
<th class="search-header" colspan="10">
|
||||||
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
||||||
</search-bar>
|
</hz-search-bar>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -18,8 +18,8 @@ limitations under the License.
|
|||||||
<thead>
|
<thead>
|
||||||
<tr ng-show="showSearchBar">
|
<tr ng-show="showSearchBar">
|
||||||
<th class="search-header" colspan="9">
|
<th class="search-header" colspan="9">
|
||||||
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
||||||
</search-bar>
|
</hz-search-bar>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -79,8 +79,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="search-header" colspan="7">
|
<th class="search-header" colspan="7">
|
||||||
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
||||||
</search-bar>
|
</hz-search-bar>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -99,8 +99,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="search-header" colspan="8">
|
<th class="search-header" colspan="8">
|
||||||
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
|
||||||
</search-bar>
|
</hz-search-bar>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -62,9 +62,9 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="search-header" colspan="7">
|
<th class="search-header" colspan="7">
|
||||||
<search-bar group-classes="input-group-sm"
|
<hz-search-bar group-classes="input-group-sm"
|
||||||
icon-classes="fa-search">
|
icon-classes="fa-search">
|
||||||
</search-bar>
|
</hz-search-bar>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -287,9 +287,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="search-header"
|
<th class="search-header"
|
||||||
colspan="{$ ctrl.tableHeadCells.length + 2 $}">
|
colspan="{$ ctrl.tableHeadCells.length + 2 $}">
|
||||||
<search-bar group-classes="input-group-sm"
|
<hz-search-bar group-classes="input-group-sm"
|
||||||
icon-classes="fa-search">
|
icon-classes="fa-search">
|
||||||
</search-bar>
|
</hz-search-bar>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user