mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
upgraded Ember and integrated Bootstrap 4
Upgraded to Ember JS 2.16.x release. This upgrade uses the new JavaScript modules API syntax. Integrated Bootstrap 4 Beta 2 via package.json and associated popper.js library. Overridden Bootstrap styles using bootstrap.scss -- this file selectively imports the modules we need.
This commit is contained in:
parent
0f04be4ea1
commit
b31ab712c1
229 changed files with 1610 additions and 3181 deletions
|
@ -9,22 +9,25 @@
|
|||
//
|
||||
// https://documize.com
|
||||
|
||||
import Ember from 'ember';
|
||||
import { htmlSafe } from '@ember/string';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
myWidth: Ember.computed('tabs', function() {
|
||||
import { computed, set } from '@ember/object';
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
myWidth: computed('tabs', function() {
|
||||
let count = this.get('tabs.length');
|
||||
let width = 95 / count;
|
||||
return Ember.String.htmlSafe("width: " + `${width}%;`);
|
||||
return htmlSafe("width: " + `${width}%;`);
|
||||
}),
|
||||
|
||||
actions: {
|
||||
onTabSelect(tab) {
|
||||
this.get('tabs').forEach(t => {
|
||||
Ember.set(t, 'selected', false);
|
||||
set(t, 'selected', false);
|
||||
});
|
||||
|
||||
Ember.set(tab, 'selected', true);
|
||||
set(tab, 'selected', true);
|
||||
|
||||
this.attrs.onTabSelect(this.get('tabs'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue