MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/editor/poll/PollSearchView.js:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12module.exports = (PollSearchView = (function () {
13 PollSearchView = class PollSearchView extends SearchView {
14 static initClass () {
15 this.prototype.id = 'editor-poll-home-view'
16 this.prototype.modelLabel = 'Poll'
17 this.prototype.model = require('models/Poll')
18 this.prototype.modelURL = '/db/poll'
19 this.prototype.tableTemplate = require('app/templates/editor/poll/poll-search-table')
20 this.prototype.projection = ['name', 'description', 'slug', 'priority', 'created']
21 }
22
23 getRenderData () {
24 const context = super.getRenderData()

Callers 1

PollSearchView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected