28 lines
415 B
JavaScript
28 lines
415 B
JavaScript
/**
|
|
* wp.media.view.Label
|
|
*
|
|
* @class
|
|
* @augments wp.media.View
|
|
* @augments wp.Backbone.View
|
|
* @augments Backbone.View
|
|
*/
|
|
var View = require( './view.js' ),
|
|
Label;
|
|
|
|
Label = View.extend({
|
|
tagName: 'label',
|
|
className: 'screen-reader-text',
|
|
|
|
initialize: function() {
|
|
this.value = this.options.value;
|
|
},
|
|
|
|
render: function() {
|
|
this.$el.html( this.value );
|
|
|
|
return this;
|
|
}
|
|
});
|
|
|
|
module.exports = Label;
|