|
15 | 15 | * <li>.chartId - the unique id of this trends chart |
16 | 16 | * <li>.title - (optional) title of the Trends chart |
17 | 17 | * <li>.layout - (optional) the layout and sizes of titles and chart. Values are 'large' (default), 'small', 'compact', and 'inline' |
| 18 | + * <li>.compactLabelPosition - (optional) the trend label positioning when the layout value is 'compact'. Values are 'left' (default) or 'right' |
18 | 19 | * <li>.trendLabel - (optional) the trend label used in the 'inline' layout |
19 | 20 | * <li>.timeFrame - (optional) the time frame for the data in the pfSparklineChart, ex: 'Last 30 Days' |
20 | 21 | * <li>.units - unit label for values, ex: 'MHz','GB', etc.. |
|
44 | 45 | <div class="col-md-12"> |
45 | 46 | <div class="row"> |
46 | 47 | <div class="col-md-4"> |
47 | | - <form role="form""> |
| 48 | + <form role="form"> |
48 | 49 | <div class="form-group"> |
49 | 50 | <label>Show</label></br> |
50 | 51 | <label class="checkbox-inline"> |
|
101 | 102 | </div> |
102 | 103 | </div> |
103 | 104 | <div class="row"> |
104 | | - <div class="col-md-6"> |
105 | | - <form role="form""> |
| 105 | + <div class="col-md-4"> |
| 106 | + <form role="form"> |
106 | 107 | <div class="form-group"> |
107 | 108 | <label class="checkbox-inline"> |
108 | 109 | <input type="checkbox" ng-model="data.dataAvailable">Data Available</input> |
109 | 110 | </label> |
110 | 111 | </div> |
111 | 112 | </form> |
112 | 113 | </div> |
| 114 | + <div class="col-md-4" ng-if="config.layout === 'compact'"> |
| 115 | + <form role="form"> |
| 116 | + <div class="form-group"> |
| 117 | + <label>Compact Label Position</label></br> |
| 118 | + <label class="radio-inline"> |
| 119 | + <input type="radio" ng-model="config.compactLabelPosition" value="left">Left</input> |
| 120 | + </label> |
| 121 | + <label class="radio-inline"> |
| 122 | + <input type="radio" ng-model="config.compactLabelPosition" value="right">Right</input> |
| 123 | + </label> |
| 124 | + </div> |
| 125 | + </form> |
| 126 | + </div> |
113 | 127 | </div> |
114 | 128 | </div> |
115 | 129 | </div> |
|
125 | 139 | valueType : 'actual', |
126 | 140 | timeFrame : 'Last 15 Minutes', |
127 | 141 | units : 'MHz', |
128 | | - tooltipType : 'percentage' |
| 142 | + tooltipType : 'percentage', |
| 143 | + compactLabelPosition : 'left' |
129 | 144 | }; |
130 | 145 |
|
131 | 146 | $scope.footerConfig = { |
|
134 | 149 | callBackFn: function () { |
135 | 150 | alert("Footer Callback Fn Called"); |
136 | 151 | } |
137 | | - } |
| 152 | + }; |
138 | 153 |
|
139 | 154 | $scope.filterConfig = { |
140 | 155 | filters : [{label:'Last 30 Days', value:'30'}, |
|
143 | 158 | callBackFn: function (f) { |
144 | 159 | alert("Filter Callback Fn Called for '" + f.label + "' value = " + f.value); |
145 | 160 | } |
146 | | - } |
| 161 | + }; |
147 | 162 |
|
148 | 163 | $scope.layouts = [ |
149 | 164 | { |
|
0 commit comments