regexper-static/src/js/parser/javascript/literal.js
2014-12-09 18:08:40 -05:00

18 lines
331 B
JavaScript

import _ from 'lodash';
import Base from './base.js';
export default _.extend({}, Base, {
type: 'literal',
render() {
this.container.addClass('literal');
this.label = this.renderLabel(this.container, '"' + this.literal.textValue + '"');
this.label.select('rect').attr({
rx: 3,
ry: 3
});
}
});