mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 04:11:10 +01:00
25 lines
388 B
JavaScript
25 lines
388 B
JavaScript
|
/**
|
||
|
* @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;
|