discourse/plugins/poll/assets/javascripts/views/poll.js.es6

13 lines
446 B
Plaintext
Raw Normal View History

export default Em.View.extend({
templateName: "poll",
classNames: ["poll"],
2016-06-07 18:55:01 +08:00
attributeBindings: ["data-poll-type", "data-poll-name", "data-poll-status", "data-poll-public"],
poll: Em.computed.alias("controller.poll"),
"data-poll-type": Em.computed.alias("poll.type"),
"data-poll-name": Em.computed.alias("poll.name"),
"data-poll-status": Em.computed.alias("poll.status"),
2016-06-07 18:55:01 +08:00
"data-poll-public": Em.computed.alias("poll.public")
});