16 lines
342 B
JavaScript
16 lines
342 B
JavaScript
export default Ember.Component.extend({
|
|
tagName: "ol",
|
|
|
|
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")
|
|
});
|