2015-07-09 15:46:19 -07:00
|
|
|
export default Ember.Component.extend({
|
2015-07-28 09:59:26 -07:00
|
|
|
tagName: 'ol',
|
2015-07-09 15:46:19 -07:00
|
|
|
|
|
|
|
|
enuminfo: function() {
|
|
|
|
|
const hash = this.get('col.enum');
|
|
|
|
|
let result = [];
|
|
|
|
|
for (let key in hash) {
|
|
|
|
|
if (!hash.hasOwnProperty(key)) { continue; }
|
|
|
|
|
result.push({value: key, name: hash[key]});
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}.property('col.enum')
|
|
|
|
|
});
|