Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -0800 | [diff] [blame] | 1 | <div class="row"> |
| 2 | <div class="col-xs-12"> |
| 3 | <h1>Xos Sample GUI Dashboard Extension</h1> |
| 4 | </div> |
| 5 | <div class="col-xs-12"> |
| 6 | <p>From our sample GUI extension module we are able to extend the dashboard.</p> |
| 7 | </div> |
| 8 | </div> |
| 9 | <div class="row"> |
| 10 | <div class="col-sm-4"> |
| 11 | To add a component to the dashboard you can invoke the <code>XosComponentInjector</code> service as in this example: |
| 12 | </div> |
| 13 | <div class="col-sm-8"> |
| 14 | <pre> |
| 15 | XosComponentInjector.injectComponent( |
| 16 | '#dashboard-component-container', |
| 17 | 'dashboardExtension', |
| 18 | {}, |
| 19 | '', |
| 20 | false |
| 21 | ); |
| 22 | </pre> |
| 23 | </div> |
| 24 | </div> |